Hello,
I am having some confusion regarding the formulae for relative and absolute errros. In the course notes, we treat them as
abs error = (x - x’)
rel error = (x - x’) / x
But in the textbook, we do
abs error = (x’ - x)
rel error = (x’ - x) /x
Where x’ is the approx and x is the actual. Does it matter which formula I use?
Similarly,
In the notes, total error = f(x) - f’(x’) where f’ is the computational approximation of the function f
But in the tb, we do f’(x’) - f(x)
Also the formula x’ = x(1 + delta) uses the textbook formula where delta is the relative error.
So does the order matter in these cases?
Thanks!