\frac{x - y}{z - y}\frac{x - y}{z - y}double f(double x, double y, double z) {
double r622901 = x;
double r622902 = y;
double r622903 = r622901 - r622902;
double r622904 = z;
double r622905 = r622904 - r622902;
double r622906 = r622903 / r622905;
return r622906;
}
double f(double x, double y, double z) {
double r622907 = x;
double r622908 = y;
double r622909 = r622907 - r622908;
double r622910 = z;
double r622911 = r622910 - r622908;
double r622912 = r622909 / r622911;
return r622912;
}




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