\frac{x - y}{z - y}\frac{x - y}{z - y}double f(double x, double y, double z) {
double r573215 = x;
double r573216 = y;
double r573217 = r573215 - r573216;
double r573218 = z;
double r573219 = r573218 - r573216;
double r573220 = r573217 / r573219;
return r573220;
}
double f(double x, double y, double z) {
double r573221 = x;
double r573222 = y;
double r573223 = r573221 - r573222;
double r573224 = z;
double r573225 = r573224 - r573222;
double r573226 = r573223 / r573225;
return r573226;
}




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