Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

mxGetEps (C and Fortran) - Value of eps

C Syntax

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

Fortran Syntax

real*8 mxGetEps

Returns

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 matlabroot/extern/examples/mx folder .

See Also

mxGetInf, mxGetNan

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

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