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

Online Help

All Products    Maple    MapleSim


infinity

 

Description

Examples

Description

• 

infinity is a name in Maple which has several special properties.

• 

infinity is used to denote a mathematical infinity, and hence it is usually used as a symbol by itself or as -infinity.

• 

Several functions accept infinity as a parameter or produce it as a result of computation (for example, int, sum, limit, min, max, and RealRange). The to part of the for loop statement accepts infinity as an argument, which will cause it to loop forever.

• 

The kernel can compare infinity or -infinity to any other numerical value. Hence, infinity can be used in boolean expressions (for example, max, min, etc.).

  

In the floating-point computation domain, infinity is represented as Float(infinity), and -infinity is represented as Float(-infinity) or -Float(infinity).  (The exponent fields are both the symbol infinity,  while the mantissas are 1 and -1, respectively.)  For completeness, these can be entered as Float(n, infinity), where n is a non-0 integer. Float(n, infinity) automatically simplifies to sign(n) * Float(infinity).

• 

Float(infinity) cannot be assumed to represent the mathematical concept of infinity, as it may also arise from non-infinity operations, such as overflows.  Care must therefore be taken when converting between computation domains (e.g., via round()) that spurious information is not artificially created.

  

Note:  While the tests Float(infinity)=infinity and Float(infinity) < infinity both return false, the test Float(infinity) <= infinity returns true.

• 

The quantities infinity, -infinity, infinity*I, -infinity*I, infinity + y*I, -infinity + y*I, x + infinity*I and x - infinity*I, where x and y are finite, are all considered to be distinct in Maple. However, all 2-component complex numerics in which both components are infinity are considered to be the same (representing the single point at the "north pole" of the Riemann sphere).

  

Similarly, different floating-point infinities are generally considered to represent distinct entities, except that the four infinities Float(+-infinity+-infinity*I) are considered to be the same.

• 

The type cx_infinity can be used to recognize this "north pole" infinity.

• 

The NumericClass function can also be used to differentiate between the various infinities.

• 

Infinity commonly arises as the default value from the divide_by_zero and overflow numeric events.

• 

See the type/infinity help page for more information regarding how to test for an infinity.

Examples

limitexpx&comma;x=

(1)

int1x2&comma;x=1..

1

(2)

sum1i2&comma;i=..1

π26

(3)

min,max

,

(4)

assumex&comma;RealRange&comma;32

evalb32<

true

(5)

Γ1.

Float+FloatI

(6)

Exceptional conditions or undefined operations signal events, which can be caught or tested for, if desired.

NumericStatusfalse

invalid_operation=true,division_by_zero=true,overflow=false,underflow=false,inexact=true,real_to_complex=true

(7)

undefined

(8)

NumericStatusinvalid_operation

true

(9)

See Also

events

Float(infinity)

initialconstants

NumericEvent

type/cx_infinity

type/infinity

type/SymbolicInfinity