Exam-style question
Try this first
Which expression correctly calculates the relative error when actualValue is the actual value and storedValue is the value stored by the computer?.
- A.actualValue + storedValue
- B.|actualValue - storedValue| / actualValue
- C.actualValue / |actualValue - storedValue|
- D.|actualValue - storedValue| × actualValue
Answer and explanation
Concise answer
|actualValue - storedValue| / actualValue
Why this is correct
First find the absolute error using the magnitude of the difference, then divide it by the actual value to obtain the relative error.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
