\frac{x - y}{z - y}\frac{x}{z - y} - \frac{y}{z - y}double f(double x, double y, double z) {
double r679084 = x;
double r679085 = y;
double r679086 = r679084 - r679085;
double r679087 = z;
double r679088 = r679087 - r679085;
double r679089 = r679086 / r679088;
return r679089;
}
double f(double x, double y, double z) {
double r679090 = x;
double r679091 = z;
double r679092 = y;
double r679093 = r679091 - r679092;
double r679094 = r679090 / r679093;
double r679095 = r679092 / r679093;
double r679096 = r679094 - r679095;
return r679096;
}




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