\frac{x - y}{z - y}\frac{x}{z - y} - \frac{y}{z - y}double f(double x, double y, double z) {
double r580838 = x;
double r580839 = y;
double r580840 = r580838 - r580839;
double r580841 = z;
double r580842 = r580841 - r580839;
double r580843 = r580840 / r580842;
return r580843;
}
double f(double x, double y, double z) {
double r580844 = x;
double r580845 = z;
double r580846 = y;
double r580847 = r580845 - r580846;
double r580848 = r580844 / r580847;
double r580849 = r580846 / r580847;
double r580850 = r580848 - r580849;
return r580850;
}




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