Content deleted Content added
m clean up spacing around commas and other punctuation fixes, replaced: ,b → , b |
Erel Segal (talk | contribs) |
||
Line 11:
==Formal definition==
:<math>|v-v_\text{approx}| \leq \varepsilon</math>
▲:<math>\epsilon = |v-v_\text{approx}|\ ,</math> <ref>{{Cite web |last=Weisstein |first=Eric W. |title=Absolute Error |url=https://mathworld.wolfram.com/ |access-date=2023-06-11 |website=mathworld.wolfram.com |language=en}}</ref><ref name=":0">{{Cite web |title=Absolute and Relative Error {{!}} Calculus II |url=https://courses.lumenlearning.com/calculus2/chapter/absolute-and-relative-error/ |access-date=2023-06-11 |website=courses.lumenlearning.com}}</ref>
where the vertical bars denote the [[absolute value]].
We say that ''v''<sub>approx</sub> approximates ''v'' with '''relative error''' ''η''>0 if<blockquote><math>|v-v_\text{approx}| \leq \eta\cdot v</math>.</blockquote>If ''v'' ≠ 0, then
:<math> \eta = \frac{\epsilon}{|v|}
= \left| \frac{v-v_\text{approx}}{v} \right|
= \left| 1 - \frac{v_\text{approx}}{v} \right|
</math>.
:<math>\delta = 100\%\times\eta = 100\%\times\left| \frac{v-v_\text{approx}}{v} \right|.</math>
|