\frac{x - y}{z - y}\frac{x}{z - y} - \frac{y}{z - y}double f(double x, double y, double z) {
double r553263 = x;
double r553264 = y;
double r553265 = r553263 - r553264;
double r553266 = z;
double r553267 = r553266 - r553264;
double r553268 = r553265 / r553267;
return r553268;
}
double f(double x, double y, double z) {
double r553269 = x;
double r553270 = z;
double r553271 = y;
double r553272 = r553270 - r553271;
double r553273 = r553269 / r553272;
double r553274 = r553271 / r553272;
double r553275 = r553273 - r553274;
return r553275;
}




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