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.
Note The size inputs m, n, p, ... should be nonnegative integers. Negative integers are treated as 0.
Inf(...,'like',p) is an array of Infs of the same data type, sparsity, and complexity (real or complex) as the single or double precision numeric variable p.
1/0, 1.e1000, 2^2000, and exp(1000) all produce Inf.
log(0) produces -Inf.
Inf-Inf and Inf/Inf both produce NaN (Not-a-Number).