Relative error
For a given value,
and its approxiamtion,
, the relative error is given by
, when
. For example:
> relerr:=abs((p-pa)/p);
The relative error is often more relevant because it does not mix the actual magnitude of the numbers used into the perceived importance of the error.