trigsubs - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Operations : Substitution : trigsubs

trigsubs

handle trigonometric identities

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

trigsubs(expr)

trigsubs(s)

trigsubs(s, expr)

Parameters

expr

-

expression

s

-

equation

Description

• 

The function trigsubs manages a table of valid trigonometric identities.

• 

If trigsubs is called with the single argument 0, it returns a set of functions known to the procedure.

• 

If trigsubs is called with a single trigonometric expression expr, it returns a list of trigonometric expressions equal to expr.

• 

If trigsubs is called with a single equation s which represents a trigonometric identity, it returns `found` if this identity belongs to the table, and `not found` otherwise.

• 

If trigsubs is called with two arguments, it checks whether the identity s belongs to the table or not.  In the former case, the function applies this identity to expr and returns the result.  In the latter case, the function returns an error message.

• 

For substitution of identities not known to this procedure, use subs.

Examples

trigsubs0

cos,cosh,cot,coth,csc,csch,exp,sec,sech,sin,sinh,tan,tanh

(1)

trigsubscosa+bw

cosbwa,cos12bw+12a2sin12bw+12a2,1secbw+a,1tan12bw+12a21+tan12bw+12a2,12ⅇIbw+a+12ⅇIbw+a,cosbwcosasinbwsina

(2)

trigsubscosw=sinw

`not found`

(3)

trigsubscosw=sinw,1

Error, (in trigsubs) not found in table - use subs to override

trigsubssin2z=2coszsinz,sin2zcosz

2cosz2sinz

(4)

See Also

simplify/siderels

subs

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam