matlab mxisinf函数语法

发表matlab mxisinf函数相关文章
一句话说明: Determine whether input is infinite

mxIsInf (C and Fortran)

Determine whether input is infinite

C Syntax

#include "matrix.h"
bool mxIsInf(double value);

Fortran Syntax

integer*4 mxIsInf(value)
real*8 value

Arguments

value

Double-precision, floating-point number you are testing

Returns

Logical 1 (true) if value is infinite, and logical 0 (false) otherwise.

Description

Call mxIsInf to determine whether value is equal to infinity or minus infinity. MATLAB® software stores the value of infinity in a permanent variable named Inf, which represents IEEE® arithmetic positive infinity. The value of the variable Inf is built into the system; you cannot modify it.

Operations 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 value equals NaN (Not-a-Number), mxIsInf returns false. In other words, NaN is not equal to infinity.

Examples

See the following examples in matlabroot/extern/examples/mx.

See Also

mxIsFinite, mxIsNaN

欢迎转载,转载请注明来自一手册:http://yishouce.com/matlab/func/mxisinf

与matlab mxisinf用法相关的文章

友情链接It题库(ittiku.com)| 版权归yishouce.com所有| 友链等可联系 admin#yishouce.com|粤ICP备16001685号-1