type/trig - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Data Types : Type Checking : Types : type/trig

type/trig

check for trigonometric functions

type/trigh

check for hyperbolic functions

 

Calling Sequence

Parameters

Description

Examples

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:

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.

Examples

typesinx,'trig'

true

(1)

typesinx,'trig'

true

(2)

typesinhx,'trigh'

true

(3)

typesinhx,'trigh'

true

(4)

typeⅇx,'trig'

false

(5)

typeⅇx,'trigh'

false

(6)

typesinx+cosx,'trig'

false

(7)

typesinx+cosx,'trigh'

false

(8)

typesin1,'trigx'

false

(9)

typesin1,'trighx'

false

(10)

typetanh3x1,'trigx'

true

(11)

typetanh3x1,'trighx'

true

(12)

typetan3x1,'trighx'

false

(13)

See Also

trigonometry

type

type[arctrig]

type[function]