\frac{x - y}{z - y}\frac{x}{z - y} - \frac{y}{z - y}double f(double x, double y, double z) {
double r470049 = x;
double r470050 = y;
double r470051 = r470049 - r470050;
double r470052 = z;
double r470053 = r470052 - r470050;
double r470054 = r470051 / r470053;
return r470054;
}
double f(double x, double y, double z) {
double r470055 = x;
double r470056 = z;
double r470057 = y;
double r470058 = r470056 - r470057;
double r470059 = r470055 / r470058;
double r470060 = r470057 / r470058;
double r470061 = r470059 - r470060;
return r470061;
}




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 2019303 +o rules:numerics
(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)))