-Inf

回答(1 个)

Walter Roberson
Walter Roberson 2012-1-24

3 个投票

-Inf is the unary negation operator applied to Inf, which is Positive Infinity. -Inf is thus negative infinity.
Some operations that would produce numbers more negative than the most negative number that can be represented in binary floating point, will indicate that numeric overflow by using -Inf as the answer.
-Inf is, among other things, the result of log(0)

类别

帮助中心File Exchange 中查找有关 Exponents and Logarithms 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by