Inf
Inf
is 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.
dbstop
,finite
,isinf
,isnan
,NaN
(c) Copyright 1994 by The MathWorks, Inc.