You should not define “accuracy” based on the difference between x and x2. If x*A is smaller than B, then there will be many values of x that map to the same y and your inverse function cannot possibly know which one is your original x. Better to compare fma(x, A, B) to fma(x2, A, B).