\frac{x - y}{z - y}\frac{x - y}{z - y}double f(double x, double y, double z) {
double r786927 = x;
double r786928 = y;
double r786929 = r786927 - r786928;
double r786930 = z;
double r786931 = r786930 - r786928;
double r786932 = r786929 / r786931;
return r786932;
}
double f(double x, double y, double z) {
double r786933 = x;
double r786934 = y;
double r786935 = r786933 - r786934;
double r786936 = z;
double r786937 = r786936 - r786934;
double r786938 = r786935 / r786937;
return r786938;
}




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
Final simplification0.0
herbie shell --seed 2020047
(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)))