\frac{x - y}{z - y}\frac{x}{z - y} - \frac{y}{z - y}double f(double x, double y, double z) {
double r585327 = x;
double r585328 = y;
double r585329 = r585327 - r585328;
double r585330 = z;
double r585331 = r585330 - r585328;
double r585332 = r585329 / r585331;
return r585332;
}
double f(double x, double y, double z) {
double r585333 = x;
double r585334 = z;
double r585335 = y;
double r585336 = r585334 - r585335;
double r585337 = r585333 / r585336;
double r585338 = r585335 / r585336;
double r585339 = r585337 - r585338;
return r585339;
}




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