trigonometric - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


combine/trig

combine trigonometric terms

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

combine(f, trig);

Parameters

f

-

any expression

Description

• 

Products and powers of trigonometric terms involving sin, cos, sinh and cosh are combined into a sum of trigonometric terms by repeated application of the transformations

sinasinb12cosab12cosa+b

sinacosb12sinab+12sina+b

cosacosb12cosab+12cosa+b

• 

where  sina2  and  cosb2  are special cases of the above. The form of the result is a sum of trigonometric terms whose arguments are integral linear combinations of the original arguments.

• 

An important special case is when the input is a polynomial in sinx and cosx over a field, in which case the result is a canonical form; namely,

i=nnaisinix+i=nnbicosix

• 

where ai, bi are in the field and n is bounded by the total degree of the input polynomial in sinx and cosx.

Examples

combinesinx2,trig

12cos2x2

(1)

combinesinhxcoshx,trig

sinh2x2

(2)

combine2sinxcosy,trig

sinx+y+sinxy

(3)

fsinx2cosx+3cosx3+2sinxcosx

fsinx2cosx+3cosx3+2sinxcosx

(4)

combinef,trig

5cosx2+cos3x2+sin2x

(5)

f512sinx5cosx5

f512sinx5cosx5

(6)

combinef,trig

sin10x+10sin2x5sin6x

(7)

See Also

simplify/trig