type/constant - Maple Help

Online Help

All Products    Maple    MapleSim


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

type/constant

check for a constant

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

type(x, constant)

Parameters

x

-

any expression

Description

• 

The call type(x, constant) verifies whether x is a constant.

• 

The expressions described on the page constant are of type constant. Additionally, a Maple expression is of type constant if it is an unevaluated function with all arguments of type constant, or a sum, product, or power with all operands of type constant. For additional details, see constant.

Examples

type5,constant

true

(1)

type0.05,constant

true

(2)

typelnπ,constant

true

(3)

type∞,constant

true

(4)

typeg1,constant

true

(5)

typefalse,constant

true

(6)

typex2,constant

false

(7)

See Also

constant

type

type/complexcons

type/numeric

type/realcons

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam