undefined - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


type/undefined

check for an object of type undefined

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

type(x, undefined)

Parameters

x

-

any expression

Description

• 

The type(x, undefined) function returns true if x is

  

1.  undefined;

  

2.  a floating-point number whose exponent is undefined;

  

3.  a nonreal, where at least one of the arguments satisfies either (1) or (2).

  

A nonreal is a non-extended_numeric complex constant, where x (if present) and x are of type extended_numeric.

• 

A complex extended_numeric object in which one component is of type infinity and the other is of type undefined, is considered to be of both types infinity and undefined.  In most computations, however, such an object is considered to be an infinity first, and an undefined second. See the example involving x below.

Examples

typeundefined,undefined

true

(1)

typeIundefined,undefined

true

(2)

type3undefined,undefined

true

(3)

typeaundefined,undefined

false

(4)

typeundefined+2I,undefined

true

(5)

x := Float(infinity + undefined*I);

xFloat+FloatundefinedI

(6)

absx

Float

(7)

1x

0.+0.I

(8)

y

yundefined

(9)

typey,Andundefined,extended_rational

true

(10)

See Also

Im

Re

type

type/constant

type/extended_numeric

type/nonreal

undefined