
Rewrite – Trig
trigx→sinx
Returns an expression simplied using the formulas sin(x)^2+cos(x)^2=1 and tan(x)=sin(x)/cos(x). Sin(x) is
given precedence over cos(x) and tan(x) in the result.
trigsin(Expr)
Example:
trigsin(cos(x)^4+sin(x)^2) returns sin(x)^4-sin(x)^2+1
trigx→cosx
Returns an expression simplied using the formulas sin(x)^2+cos(x)^2=1 and tan(x)=sin(x)/cos(x). Cos(x) is
given precedence over sin(x) and tan(x) in the result.
trigcos(Expr)
Example:
trigcos(sin(x)^4+sin(x)^2) returns cos(x)^4-3*cos(x)^2+2
trigx→tanx
Returns an expression simplied using the formulas sin(x)^2+cos(x)^2=1 and tan(x)=sin(x)/cos(x). Tan(x) is
given precedence over sin(x) and cos(x) in the result.
trigtan(Expr)
Example:
trigtan(cos(x)^4+sin(x)^2) returns (tan(x)^4+tan(x)^2+1)/(tan(x)^4+2*tan(x)^2+1)
atrig2ln
Returns an expression with inverse trigonometric functions rewritten using the natural logarithm function.
trig2ln(Expr)
Example:
atrig2ln(atan(x)) returns
tlin
Returns a trigonometric expression with the products and integer powers linearized.
tlin(ExprTrig)
Example:
tlin(sin(x)^3) gives
tcollect
Returns a trigonometric expression linearized and with any sine and cosine terms of the same angle collected
together.
tcollect(Expr)
376 Chapter 22 Functions and commands
Komentarze do niniejszej Instrukcji