\frac{x - y}{z - y}\frac{x - y}{z - y}double f(double x, double y, double z) {
double r1289855 = x;
double r1289856 = y;
double r1289857 = r1289855 - r1289856;
double r1289858 = z;
double r1289859 = r1289858 - r1289856;
double r1289860 = r1289857 / r1289859;
return r1289860;
}
double f(double x, double y, double z) {
double r1289861 = x;
double r1289862 = y;
double r1289863 = r1289861 - r1289862;
double r1289864 = z;
double r1289865 = r1289864 - r1289862;
double r1289866 = r1289863 / r1289865;
return r1289866;
}




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