check for an object of type atomic - Maple Help

Online Help

All Products    Maple    MapleSim


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

type/atomic - check for an object of type atomic

Calling Sequence

type(x, atomic)

Parameters

x

-

any expression

Description

• 

The call type(x, atomic) checks to see if x is of type atomic. It returns true if x is of type atomic, and false otherwise.

• 

An object is of type atomic if it cannot be mapped over, that is, mapf,x=fx.  Objects in Maple which have this property are of type name, complex(extended_numeric), indexed, string, procedure, or `module`.

Examples

type1,'atomic'

true

(1)

type12,'atomic'

true

(2)

type0.5,'atomic'

true

(3)

type3+1I2,'atomic'

true

(4)

typex+1I2,'atomic'

false

(5)

typeString,'atomic'

true

(6)

typeName,'atomic'

true

(7)

typeab,'atomic'

true

(8)

typeab,'atomic'

false

(9)

See Also

map, type, type/extended_numeric, type/float, type/fraction, type/indexed, type/integer, type/literal, type/module, type/name, type/procedure, type/rational, type/string


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