\frac{\left|x - y\right|}{\left|y\right|}\frac{\left|x - y\right|}{\left|y\right|}(FPCore (x y) :precision binary64 (/ (fabs (- x y)) (fabs y)))
(FPCore (x y) :precision binary64 (/ (fabs (- x y)) (fabs y)))
double code(double x, double y) {
return (((double) fabs(((double) (x - y)))) / ((double) fabs(y)));
}
double code(double x, double y) {
return (((double) fabs(((double) (x - y)))) / ((double) fabs(y)));
}



Bits error versus x



Bits error versus y
Results
Initial program Error: 0.0 bits
Final simplificationError: 0.0 bits
herbie shell --seed 2020204
(FPCore (x y)
:name "Numeric.LinearAlgebra.Util:formatSparse from hmatrix-0.16.1.5"
:precision binary64
(/ (fabs (- x y)) (fabs y)))