Relative error

For a given value, [Maple Math] and its approxiamtion, [Maple Math] , the relative error is given by

[Maple Math] , when [Maple Math] . For example:

> relerr:=abs((p-pa)/p);

[Maple Math]

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.