\frac{x - y}{z - y}\frac{x}{z - y} - \frac{y}{z - y}double f(double x, double y, double z) {
double r802456 = x;
double r802457 = y;
double r802458 = r802456 - r802457;
double r802459 = z;
double r802460 = r802459 - r802457;
double r802461 = r802458 / r802460;
return r802461;
}
double f(double x, double y, double z) {
double r802462 = x;
double r802463 = z;
double r802464 = y;
double r802465 = r802463 - r802464;
double r802466 = r802462 / r802465;
double r802467 = r802464 / r802465;
double r802468 = r802466 - r802467;
return r802468;
}




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