next up previous contents
Next: TEPS Type-based Epsilon Calculation Up: Base Constants Previous: EPS Double Precision Floating   Contents

Subsections

FEPS Single Precision Floating Point Relative Machine Precision Epsilon

Usage

Returns feps, which quantifies the relative machine precision of floating point numbers (a machine specific quantity). The syntax for feps is:

   y = feps

which returns feps for single precision values. For most typical processors, this value is approximately 2^-24, or 5.9604e-8.

Example

The following example demonstrates the use of the feps function, and one of its numerical consequences.

--> feps
ans = 
  <float>  - size: [1 1]
    5.9604645e-08   
--> 1.0f+eps
ans = 
  <double>  - size: [1 1]
    1.000000000000000



Samit K. Basu 2005-03-16