Computes the relative error between two numbers x and y.
.relativeError(x, y)
x
a number
y
The relative error e is defined as e = | 1 - x/y |
The relative error between x and y