\frac{x - y}{z - y}\frac{x}{z - y} - \frac{y}{z - y}double f(double x, double y, double z) {
double r409498 = x;
double r409499 = y;
double r409500 = r409498 - r409499;
double r409501 = z;
double r409502 = r409501 - r409499;
double r409503 = r409500 / r409502;
return r409503;
}
double f(double x, double y, double z) {
double r409504 = x;
double r409505 = z;
double r409506 = y;
double r409507 = r409505 - r409506;
double r409508 = r409504 / r409507;
double r409509 = r409506 / r409507;
double r409510 = r409508 - r409509;
return r409510;
}




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
rmApplied div-sub0.0
Final simplification0.0
herbie shell --seed 2019303
(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)))