\frac{2 \cdot 10^{3} \cdot x}{y} - 50\frac{2 \cdot 10^{3} \cdot x}{y} - 50double code(double x, double y) {
return ((double) (((double) (((double) (2000.0 * x)) / y)) - 50.0));
}
double code(double x, double y) {
return ((double) (((double) (((double) (2000.0 * x)) / y)) - 50.0));
}



Bits error versus x



Bits error versus y
Results
Initial program 0.2
Final simplification0.2
herbie shell --seed 2020153
(FPCore (x y)
:name "(- (/ (* 2000 x) y) 50)"
:precision binary64
(- (/ (* 2000.0 x) y) 50.0))