User`s guide
static bool IsInf(double x)
Purpose Test if valu e is infinite and return true if value is infinite
C++
Syntax
#include "mclcppclass. h"
bool x = mwArray::IsInf(1. 0); // Returns false
Arguments Value to test for infinity
Return
Value
Result of test.
Description Call mwArray::IsInf to determine whether or not a value is equal to
infinity or minus infinity. MATLAB stores the value of infinity in a
permanent variable named
Inf, w hich represents IEEE arithmetic
positive infinity. The value of the variable,
Inf, is built into the system;
you cannot modify it.
Operation s that return infinity include
• Division by 0. For example, 5/0 returns infinity.
• Operations resulting in overflow. For example,
exp(10000) returns
infinity because the result is too large to be represented on your
machine. If the value equals
NaN ( Not-a-Number), then mxIsInf
returns false .Inotherwords,Na N is not equal to infinity.
C-93