EPS Double Precision Floating Point Relative Machine Precision Epsilon

Section: Base Constants

Usage

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

which returns eps for double precision values. For most typical processors, this value is approximately 2^-52, or 2.2204e-16.

Example

The following example demonstrates the use of the eps function, and one of its numerical consequences.
--> eps
ans = 
  <double>  - size: [1 1]
 1.1102230246251565e-16  
--> 1.0+eps
ans = 
  <double>  - size: [1 1]
 1