trig - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


type/trig

check for trigonometric functions

type/trigh

check for hyperbolic functions

 

Calling Sequence

Parameters

Description

Supertypes

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.

Supertypes

• 

type/function

Examples

> 

type⁡sin⁡x,trig

true

(1)
> 

type⁡sin⁡x,trig

true

(2)
> 

type⁡sinh⁡x,trigh

true

(3)
> 

type⁡sinh⁡x,trigh

true

(4)
> 

type⁡exp⁡x,trig

false

(5)
> 

type⁡exp⁡x,trigh

false

(6)
> 

type⁡sin⁡x+cos⁡x,trig

false

(7)
> 

type⁡sin⁡x+cos⁡x,trigh

false

(8)
> 

type⁡sin⁡1,trig⁡x

false

(9)
> 

type⁡sin⁡1,trigh⁡x

false

(10)
> 

type⁡tanh⁡3⁢x−1,trig⁡x

true

(11)
> 

type⁡tanh⁡3⁢x−1,trigh⁡x

true

(12)
> 

type⁡tan⁡3⁢x−1,trigh⁡x

false

(13)

See Also

trigonometry

type

type/arctrig

type/function