Difference between revisions of "TrigCombine Command"
From GeoGebra Manual
(add TrigCombine[sin(x)+cos(x)] and TrigCombine[sin(x)+cos(x),sin(x)] examples) |
|||
Line 4: | Line 4: | ||
: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{sin(4x)-sin(2x)}{2}</math>.}} | :{{example|1=<code>TrigCombine[sin(x) cos(3x)]</code> gives <math>\frac{sin(4x)-sin(2x)}{2}</math>.}} | ||
− | + | :{{example|1=<code>TrigCombine[sin(x)+cos(x)]</code> gives <math> \mathbf{\sqrt{2} \; \operatorname{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[ | + | :{{example|1=<code>TrigCombine[sin(x)+cos(x),sin(x)]</code> gives <math> \mathbf{\sqrt{2} \; \operatorname{sin} \left( x + \frac{1}{4} \; \pi \right)} </math>.}} |
==CAS Syntax== | ==CAS Syntax== |
Revision as of 09:45, 1 September 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{sin(4x)-sin(2x)}{2}.
- Example:
TrigCombine[sin(x)+cos(x)]
gives \mathbf{\sqrt{2} \; \operatorname{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 \mathbf{\sqrt{2} \; \operatorname{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(x) cos(3x)]
gives \frac{sin(4x)-sin(2x)}{2}.
- 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[(tan(p) + tan(q)) / (1 - tan(p) tan(q)), tan(x)]
gives tan(p + q).
Note: See also TrigExpand Command and TrigSimplify Command.