Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Mathematics and Algorithms > Numerical Evaluation & Precision > Precision & Accuracy Control >

MachinePrecision

MachinePrecision
is a symbol used to indicate machine-number precision.
  • MachinePrecision is the default specification for precision in N and other numerical functions.
  • The option setting WorkingPrecision->MachinePrecision specifies that internal computations in numerical functions should be done with machine numbers.
MachinePrecision is treated as an exact numeric quantity:
Use like any number:
The number of bits represented:
The machine number approximating e:
An arbitrary-precision number approximating e to the same precision as machine numbers:
Use machine-number arithmetic to solve a differential equation:
Use double machine precision:
Compare the two solutions:
Evaluate to double machine precision:
Use machine precision for the default precision argument in a function definition:
Make sure computations are carried out with the same precision as machine numbers:
Without fixing the precision, the resulting precision may be lower:
Numbers with just a few digits entered are assumed to have machine precision:
Precision is based on the number of digits when more than $MachinePrecision + 1 are entered:
MachinePrecision is a numerical constant while $MachinePrecision evaluates to a number:
$MachinePrecision is the machine-precision approximation to MachinePrecision:
MachinePrecision times the number of bits per digit gives the binary machine precision:
Digits beyond the known precision are represented as Indeterminate:
New in 5
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team