MATLAB Function Reference | Search  Help Desk |
Inf | Examples See Also |
Inf
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.
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.
is*
Detect state
NaN
Not-a-Number