\frac{x - y}{z - y}\frac{x}{z - y} - \frac{y}{z - y}double f(double x, double y, double z) {
double r554293 = x;
double r554294 = y;
double r554295 = r554293 - r554294;
double r554296 = z;
double r554297 = r554296 - r554294;
double r554298 = r554295 / r554297;
return r554298;
}
double f(double x, double y, double z) {
double r554299 = x;
double r554300 = z;
double r554301 = y;
double r554302 = r554300 - r554301;
double r554303 = r554299 / r554302;
double r554304 = r554301 / r554302;
double r554305 = r554303 - r554304;
return r554305;
}




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