x + \frac{y}{500}\mathsf{fma}\left(y, 2 \cdot 10^{-3}, x\right)double code(double x, double y) {
return (x + (y / 500.0));
}
double code(double x, double y) {
return fma(y, 0.002, x);
}



Bits error versus x



Bits error versus y
Results
Initial program 0.0
Taylor expanded around 0 0.1
Simplified0.1
Final simplification0.1
herbie shell --seed 2020060 +o rules:numerics
(FPCore (x y)
:name "Data.Colour.CIE:cieLAB from colour-2.3.3, C"
:precision binary64
(+ x (/ y 500)))