Accuracy
Accuracy[x]
gives the effective number of digits to the right of the decimal point in the number x.
Details
- Accuracy[x] gives a measure of the absolute uncertainty in the value of x.
- With uncertainty dx, Accuracy[x] is -Log[10,dx].
- For exact numbers such as integers, Accuracy[x] is Infinity.
- Accuracy[x] does not normally yield an integer result, and need not be positive.
- For any approximate number x, Accuracy[x] is equal to Precision[x]-RealExponent[x].
- For machine‐precision numbers whose magnitude is at least $MinMachineNumber, Accuracy[x] is given by $MachinePrecision-Log[10,Abs[x]]. »
- Accuracy[0.] equals Accuracy[$MinMachineNumber], as does the accuracy of any machine number smaller in magnitude than $MinMachineNumber. »
- Numbers entered in the form digits``a are taken to have accuracy a.
- If x is not a number, Accuracy[x] gives the minimum value of Accuracy for all the numbers that appear in x. »
Examples
open allclose allScope (4)
Generalizations & Extensions (1)
Properties & Relations (4)
For normalized machine‐precision numbers, Accuracy[x] is the same as $MachinePrecision-Log[10,Abs[x]]:
No machine number has a higher accuracy than $MinMachineNumber:
Real and imaginary parts of complex numbers can have different accuracies:
Arithmetic operations will typically mix them:
But note that real and imaginary parts may still have different accuracies:
The accuracy of the whole number is always less than or equal to either of these two accuracies:
For machine numbers, accuracy generally increases with decreasing magnitude, with a maximum at $MinMachineNumber:
For approximate numbers, Precision[x]==RealExponent[x]+Accuracy[x]:
Possible Issues (1)
Subnormal machine numbers violate the relationship Precision[x]==RealExponent[x]+Accuracy[x]:
Instead, all subnormal numbers have the same uncertainty as $MinMachineNumber:
Text
Wolfram Research (1988), Accuracy, Wolfram Language function, https://reference.wolfram.com/language/ref/Accuracy.html (updated 2018).
CMS
Wolfram Language. 1988. "Accuracy." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2018. https://reference.wolfram.com/language/ref/Accuracy.html.
APA
Wolfram Language. (1988). Accuracy. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Accuracy.html