Difference between revisions of "TrigCombine Command"
From GeoGebra Manual
m (add TrigCombine[sin(p) + cos(p), sin(x)], LaTeX tidying) |
Noel Lambert (talk | contribs) (\operatorname{ don't work in LaTeX) |
||
Line 3: | Line 3: | ||
;TrigCombine[ <Expression> ] | ;TrigCombine[ <Expression> ] | ||
:Transforms a trigonometric expression including products of trigonometric functions into an expression without products involving sums of variables. | :Transforms a trigonometric expression including products of trigonometric functions into an expression without products involving sums of variables. | ||
− | :{{example|1=<code>TrigCombine[sin(x) cos(3x)]</code> gives <math>{\frac{1}{2} | + | :{{example|1=<code>TrigCombine[sin(x) cos(3x)]</code> gives <math>{\frac{1}{2} sin \left( 4 x \right) - \frac{1}{2} sin \left( 2 x \right)}</math>.}} |
− | :{{example|1=<code>TrigCombine[sin(x) + cos(x)]</code> gives <math> {\sqrt{2} | + | :{{example|1=<code>TrigCombine[sin(x) + cos(x)]</code> gives <math> {\sqrt{2} cos \left( x - \frac{1}{4} \pi \right)} </math>.}} |
;TrigCombine[ <Expression>, <Target Function> ] | ;TrigCombine[ <Expression>, <Target Function> ] | ||
:Transforms a trigonometric expression including products of trigonometric functions into an expression without products involving sums of variables, preferring the given target function. | :Transforms a trigonometric expression including products of trigonometric functions into an expression without products involving sums of variables, preferring the given target function. | ||
− | :{{example|1=<code>TrigCombine[sin(x) + cos(x), sin(x)]</code> gives <math> {\sqrt{2} | + | :{{example|1=<code>TrigCombine[sin(x) + cos(x), sin(x)]</code> gives <math> {\sqrt{2} sin \left( x + \frac{1}{4} \pi \right)} </math>.}} |
==CAS Syntax== | ==CAS Syntax== | ||
;TrigCombine[ <Expression> ] | ;TrigCombine[ <Expression> ] | ||
:Transforms a trigonometric expression including products of trigonometric functions into an expression without products involving sums of variables. | :Transforms a trigonometric expression including products of trigonometric functions into an expression without products involving sums of variables. | ||
− | :{{example|1=<code>TrigCombine[sin(p) cos(3p)]</code> gives <math>{\frac{1}{2} | + | :{{example|1=<code>TrigCombine[sin(p) cos(3p)]</code> gives <math>{\frac{1}{2} sin \left( 4 p \right) - \frac{1}{2} sin \left( 2 p \right)}</math>.}} |
;TrigCombine[ <Expression>, <Target Function> ] | ;TrigCombine[ <Expression>, <Target Function> ] | ||
:Transforms a trigonometric expression including products of trigonometric functions into an expression without products involving sums of variables, preferring the given target function. | :Transforms a trigonometric expression including products of trigonometric functions into an expression without products involving sums of variables, preferring the given target function. | ||
− | :{{example|1=<code>TrigCombine[sin(p) + cos(p), sin(x)]</code> gives <math> {\sqrt{2} | + | :{{example|1=<code>TrigCombine[sin(p) + cos(p), sin(x)]</code> gives <math> {\sqrt{2} sin \left( p + \frac{1}{4} \pi \right)} </math>.}} |
{{note|See also [[TrigExpand Command]] and [[TrigSimplify Command]].}} | {{note|See also [[TrigExpand Command]] and [[TrigSimplify Command]].}} |
Revision as of 09:14, 29 October 2014
- TrigCombine[ <Expression> ]
- Transforms a trigonometric expression including products of trigonometric functions into an expression without products involving sums of variables.
- Example:
TrigCombine[sin(x) cos(3x)]
gives {\frac{1}{2} sin \left( 4 x \right) - \frac{1}{2} sin \left( 2 x \right)}.
- Example:
TrigCombine[sin(x) + cos(x)]
gives {\sqrt{2} cos \left( x - \frac{1}{4} \pi \right)} .
- TrigCombine[ <Expression>, <Target Function> ]
- Transforms a trigonometric expression including products of trigonometric functions into an expression without products involving sums of variables, preferring the given target function.
- Example:
TrigCombine[sin(x) + cos(x), sin(x)]
gives {\sqrt{2} sin \left( x + \frac{1}{4} \pi \right)} .
CAS Syntax
- TrigCombine[ <Expression> ]
- Transforms a trigonometric expression including products of trigonometric functions into an expression without products involving sums of variables.
- Example:
TrigCombine[sin(p) cos(3p)]
gives {\frac{1}{2} sin \left( 4 p \right) - \frac{1}{2} sin \left( 2 p \right)}.
- TrigCombine[ <Expression>, <Target Function> ]
- Transforms a trigonometric expression including products of trigonometric functions into an expression without products involving sums of variables, preferring the given target function.
- Example:
TrigCombine[sin(p) + cos(p), sin(x)]
gives {\sqrt{2} sin \left( p + \frac{1}{4} \pi \right)} .
Note: See also TrigExpand Command and TrigSimplify Command.