\frac{x - y}{z - y}\frac{x - y}{z - y}double f(double x, double y, double z) {
double r430823 = x;
double r430824 = y;
double r430825 = r430823 - r430824;
double r430826 = z;
double r430827 = r430826 - r430824;
double r430828 = r430825 / r430827;
return r430828;
}
double f(double x, double y, double z) {
double r430829 = x;
double r430830 = y;
double r430831 = r430829 - r430830;
double r430832 = z;
double r430833 = r430832 - r430830;
double r430834 = r430831 / r430833;
return r430834;
}




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