\frac{x - y}{z - y}\frac{x}{z - y} - \frac{y}{z - y}double f(double x, double y, double z) {
double r719879 = x;
double r719880 = y;
double r719881 = r719879 - r719880;
double r719882 = z;
double r719883 = r719882 - r719880;
double r719884 = r719881 / r719883;
return r719884;
}
double f(double x, double y, double z) {
double r719885 = x;
double r719886 = z;
double r719887 = y;
double r719888 = r719886 - r719887;
double r719889 = r719885 / r719888;
double r719890 = r719887 / r719888;
double r719891 = r719889 - r719890;
return r719891;
}




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 2020060 +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)))