|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
$MachineEpsilon
$MachineEpsilon
gives the difference between
and the next-nearest number representable as a machine-precision number.
DetailsDetails
- $MachineEpsilon is typically
, where n is the number of binary bits used in the internal representation of machine-precision floating-point numbers. - $MachineEpsilon measures the granularity of machine-precision numbers.
ExamplesExamplesopen allclose all
Basic Examples (1)Basic Examples (1)
| In[1]:= |
| Out[1]= |
The result of adding 1 to $MachineEpsilon is distinct from 1:
| In[2]:= |
| Out[2]= |
| In[3]:= |
| Out[3]= |
Adding a fraction of $MachineEpsilon effectively results in rounding:
| In[4]:= |
| Out[4]= |
| In[5]:= |
| Out[5]= |
New in 2
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
