DADiSP Worksheet Functions > Function Categories > Statistics and Calculus > INF

 

INF

Purpose:

Returns the numeric representation of ∞, positive infinity.

Syntax:

INF

Returns:

A real representing positive infinity.

Example:

exp(1000)

 

returns inf

Example:

1/inf

 

returns 0.0

Remarks:

The configuration parameter DEFAULT_MATH_VALUE determines the result of expressions such as 1/0. DEFAULT_MATH_VALUE defaults to 0.0, but can be set to inf.

 

If the configuration parameter USE_DEFAULT_MATH_MATH is 0, DEFAULT_MATH_VALUE is ignored and expressions such as 1/0 result in the system default.

 

Overflow operations return INF as a result.

See Also:

EPS

ISFINITE

ISINF

ISINFVALUE

PI

REALMAX

REALMIN