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

Online Help

All Products    Maple    MapleSim


type/infinity

check for an object of type infinity

type/cx_infinity

check for an object of type complex infinity

type/real_infinity

check for an object of type real infinity

type/pos_infinity

check for an object of type positive infinity

type/neg_infinity

check for an object of type negative infinity

type/SymbolicInfinity

check for an object of type symbolic infinity

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

type(x, infinity)

typex,

type(x, cx_infinity)

 

type(x, real_infinity)

 

type(x, pos_infinity)

 

type(x, neg_infinity)

 

type(x, SymbolicInfinity)

 

Parameters

x

-

any expression

Description

• 

The type(x, infinity) function returns true if x is one of the following:

  

1.  infinity or -infinity

  

2.  a floating-point number whose exponent is infinity

  

3.  a nonreal of the form a+Ib, where at least one of a or b satisfies either (1) or (2)

  

Note: A nonreal is an expression of the form a+Ib, where b <> 0 and a (if present) and b are of type extended_numeric.

• 

You can enter infinity using 1-D or 2-D math, as infinity or .

• 

The type(x, cx_infinity) function returns true if x is written as y + I*z, where both y and z are of type infinity.

• 

The type(x, real_infinity) function returns true if x is infinity, -infinity, or a floating-point number whose exponent is infinity.

• 

The type(x, pos_infinity) function returns true if x is a positive real_infinity.

• 

The type(x, neg_infinity) function returns true if x is a negative real_infinity.

• 

The type(x, SymbolicInfinity) function returns true if x is either

  

1.  of type infinity

  

2.  a product with at least one factor of type infinity

• 

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 last example below.

Examples

To enter the ` _ ` character in 2-D Math, first press the backslash (\) key, then the character.

typelimit1x&comma;x=0&comma;left&comma;

true

(1)

typelimit1x&comma;x=0&comma;left&comma;pos_infinity

false

(2)

typelimit1x&comma;x=0&comma;left&comma;neg_infinity

true

(3)

typeπ&comma;

false

(4)

typea&comma;

false

(5)

typeI&comma;

true

(6)

typeI&comma;cx_infinity

false

(7)

type2+I&comma;cx_infinity

false

(8)

type+I&comma;cx_infinity

true

(9)

typelimit1x&comma;x=0&comma;left&comma;SymbolicInfinity

true

(10)

typeI&comma;SymbolicInfinity

true

(11)

typea&comma;SymbolicInfinity

true

(12)

typesignump&comma;SymbolicInfinity

true

(13)

typeundefined+2I&comma;undefined

true

(14)

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

xFloat+FloatundefinedI

(15)

absx

Float

(16)

1x

0.+0.I

(17)

See Also

constant

Im

infinity

Re

type

type/complex

type/extended_numeric

type/negative

type/nonreal

type/positive