mxGetEps (C and Fortran) - Get value of eps

C Syntax

#include "matrix.h"
double mxGetEps(void);

Fortran Syntax

real*8 mxGetEps

Returns

The value of the MATLAB eps variable

Description

Call mxGetEps to return the value of the MATLAB eps variable. This variable holds the distance from 1.0 to the next largest floating-point number. As such, it is a measure of floating-point accuracy. The MATLAB pinv and rank functions use eps as a default tolerance.

C Examples

See mxgeteps.c in the mx subdirectory of the examples directory.

See Also

mxGetInf, mxGetNan

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS