\frac{x - y}{z - y}\frac{x - y}{z - y}double f(double x, double y, double z) {
double r775540 = x;
double r775541 = y;
double r775542 = r775540 - r775541;
double r775543 = z;
double r775544 = r775543 - r775541;
double r775545 = r775542 / r775544;
return r775545;
}
double f(double x, double y, double z) {
double r775546 = x;
double r775547 = y;
double r775548 = r775546 - r775547;
double r775549 = z;
double r775550 = r775549 - r775547;
double r775551 = r775548 / r775550;
return r775551;
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
Final simplification0.0
herbie shell --seed 2020042
(FPCore (x y z)
:name "Graphics.Rasterific.Shading:$sgradientColorAt from Rasterific-0.6.1"
:precision binary64
:herbie-target
(- (/ x (- z y)) (/ y (- z y)))
(/ (- x y) (- z y)))