type/undefined - Maple Programming Help

Online Help

All Products    Maple    MapleSim


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

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)

xFloat∞+undefinedI

x:=Float∞+FloatundefinedI

(6)

x

Float∞

(7)

1x

0.+0.I

(8)

y∞∞

y:=undefined

(9)

typey,Andundefined,extended_rational

true

(10)

See Also

constant

Im

Re

type

type/extended_numeric

type/nonreal

undefined

 


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