Difference between revisions of "TrigCombine Command"

From GeoGebra Manual
Jump to: navigation, search
(add TrigCombine[sin(x)+cos(x)] and TrigCombine[sin(x)+cos(x),sin(x)] examples)
(command syntax: changed [ ] into ( ))
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.2}}</noinclude>
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|function}}
{{command|function}}
+
;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{sin(4x)-sin(2x)}{2}</math>.}}
+
:{{examples|1=<div>
:{{example|1=<code>TrigCombine[sin(x)+cos(x)]</code> gives <math> \mathbf{\sqrt{2} \; \operatorname{cos} \left( x - \frac{1}{4} \; \pi \right)} </math>.}}
+
:*<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>
;TrigCombine[ <Expression>, <Target Function> ]
+
:*<code>TrigCombine(sin(x) + cos(x))</code> gives <math> {\sqrt{2} cos \left( x - \frac{1}{4} \pi \right)} </math>.</div>}}
 +
;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> \mathbf{\sqrt{2} \; \operatorname{sin} \left( x + \frac{1}{4} \; \pi \right)} </math>.}}
+
:{{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==
+
{{notes|1= <div>
;TrigCombine[ <Expression> ]
+
:*In the [[File:Menu view cas.svg|link=|16px]] [[CAS View]] undefined variables can be used as well.
: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}  sin \left( 4  p \right) - \frac{1}{2} sin \left( p \right)}</math>.}}
:{{example|1=<code>TrigCombine[sin(x) cos(3x)]</code> gives <math>\frac{sin(4x)-sin(2x)}{2}</math>.}}
+
:*See also [[TrigExpand Command]] and [[TrigSimplify Command]].</div>}}
 
 
;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|1=<code>TrigCombine[(tan(p) + tan(q)) / (1 - tan(p) tan(q)), tan(x)]</code> gives ''tan(p + q)''.}}
 
 
 
{{note|See also [[TrigExpand Command]] and [[TrigSimplify Command]].}}
 

Latest revision as of 08:59, 9 October 2017


TrigCombine( <Expression> )
Transforms a trigonometric expression including products of trigonometric functions into an expression without products involving sums of variables.
Examples:
  • TrigCombine(sin(x) cos(3x)) gives {\frac{1}{2} sin \left( 4 x \right) - \frac{1}{2} sin \left( 2 x \right)}
  • 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)} .


Notes:
  • In the Menu view cas.svg CAS View undefined variables can be used as well.
  • Example: TrigCombine(sin(p) cos(3p)) gives {\frac{1}{2} sin \left( 4 p \right) - \frac{1}{2} sin \left( 2 p \right)}.
© 2024 International GeoGebra Institute