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

Online Help

All Products    Maple    MapleSim


type/atomic

check for an object of type atomic

 

Calling Sequence

Parameters

Description

Examples

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, map⁡f,x=f⁡x.  Objects in Maple which have this property are of type name, complex(extended_numeric), indexed, string, procedure, or `module`.

Examples

> 

type⁡1,atomic

true

(1)
> 

type⁡12,atomic

true

(2)
> 

type⁡0.5,atomic

true

(3)
> 

type⁡3+12⁢I,atomic

true

(4)
> 

type⁡x+12⁢I,atomic

false

(5)
> 

type⁡String,atomic

true

(6)
> 

type⁡Name,atomic

true

(7)
> 

type⁡ab,atomic

true

(8)
> 

type⁡ab,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