MATLAB Function Reference
  Go to function:
    Search    Help Desk 
Inf    Examples   See Also

Infinity

Syntax

Description

Inf returns the IEEE arithmetic representation for positive infinity. Infinity results from operations like division by zero and overflow, which lead to results too large to represent as conventional floating-point values.

Examples

1/0, 1.e1000, 2^1000, and exp(1000) all produce Inf.

log(0) produces -Inf.

Inf-Inf and Inf/Inf both produce NaN, Not-a-Number.

See Also

is*         Detect state

NaN         Not-a-Number



[ Previous | Help Desk | Next ]