type/trig
check for trigonometric functions
type/trigh
check for hyperbolic functions
Calling Sequence
Parameters
Description
Supertypes
Examples
type(expr, trig(x))
type(expr, trig)
type(expr, trigh(x))
type(expr, trigh)
expr
-
any expression
x
variable name
The call type(expr, trig) returns true if expr is a function and the function name is one of the trigonometric functions:
sin,cos,tan,sec,csc,cot,sinh,cosh,tanh,sech,csch,coth
The call type(expr, trig(x)) checks, in addition, that the argument to the trigonometric function contains the variable name x.
The call type(expr, trigh) returns true if expr is a function and the function name is one of the functions:
sinh,cosh,tanh,sech,csch,coth
Otherwise, it returns false.
The call type(expr, trigh(x)) checks, in addition, that the argument to the hyperbolic function contains the variable name x.
It is important to note that the type trigh is a subset of the type trig; that is, objects of type trigh are also of type trig, but the converse is not true.
type/function
type⁡sin⁡x,trig
true
type⁡sinh⁡x,trigh
type⁡exp⁡x,trig
false
type⁡exp⁡x,trigh
type⁡sin⁡x+cos⁡x,trig
type⁡sin⁡x+cos⁡x,trigh
type⁡sin⁡1,trig⁡x
type⁡sin⁡1,trigh⁡x
type⁡tanh⁡3⁢x−1,trig⁡x
type⁡tanh⁡3⁢x−1,trigh⁡x
type⁡tan⁡3⁢x−1,trigh⁡x
See Also
trigonometry
type
type/arctrig
Download Help Document