\frac{x - y}{z - y}\frac{x - y}{z - y}double f(double x, double y, double z) {
double r813603 = x;
double r813604 = y;
double r813605 = r813603 - r813604;
double r813606 = z;
double r813607 = r813606 - r813604;
double r813608 = r813605 / r813607;
return r813608;
}
double f(double x, double y, double z) {
double r813609 = x;
double r813610 = y;
double r813611 = r813609 - r813610;
double r813612 = z;
double r813613 = r813612 - r813610;
double r813614 = r813611 / r813613;
return r813614;
}




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 2020047
(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)))