500 \cdot \left(x - y\right)
\mathsf{fma}\left(500, x, -y \cdot 500\right)double f(double x, double y) {
double r126526 = 500.0;
double r126527 = x;
double r126528 = y;
double r126529 = r126527 - r126528;
double r126530 = r126526 * r126529;
return r126530;
}
double f(double x, double y) {
double r126531 = 500.0;
double r126532 = x;
double r126533 = y;
double r126534 = r126533 * r126531;
double r126535 = -r126534;
double r126536 = fma(r126531, r126532, r126535);
return r126536;
}



Bits error versus x



Bits error versus y
Initial program 0.0
rmApplied add-sqr-sqrt0.8
Applied associate-*l*0.6
rmApplied sub-neg0.6
Applied distribute-lft-in0.6
Applied distribute-lft-in0.6
Simplified0.3
Simplified0.0
rmApplied fma-def0.0
Final simplification0.0
herbie shell --seed 2019347 +o rules:numerics
(FPCore (x y)
:name "Data.Colour.CIE:cieLABView from colour-2.3.3, B"
:precision binary64
(* 500 (- x y)))