type/trig - check for trigonometric functions
type/trigh - check for hyperbolic functions
|
Calling Sequence
|
|
type(expr, trig(x))
type(expr, trig)
type(expr, trigh(x))
type(expr, trigh)
|
|
Parameters
|
|
expr
|
-
|
any expression
|
x
|
-
|
variable name
|
|
|
|
|
Description
|
|
•
|
The call type(expr, trig) returns true if expr is a function and the function name is one of the trigonometric functions:
|
•
|
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:
|
|
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.
|
|
|
Examples
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
>
|
|
| (7) |
>
|
|
| (8) |
>
|
|
| (9) |
>
|
|
| (10) |
>
|
|
| (11) |
>
|
|
| (12) |
>
|
|
| (13) |
|
|
Download Help Document
Was this information helpful?