\frac{x - y}{z - y}\frac{x - y}{z - y}double f(double x, double y, double z) {
double r597535 = x;
double r597536 = y;
double r597537 = r597535 - r597536;
double r597538 = z;
double r597539 = r597538 - r597536;
double r597540 = r597537 / r597539;
return r597540;
}
double f(double x, double y, double z) {
double r597541 = x;
double r597542 = y;
double r597543 = r597541 - r597542;
double r597544 = z;
double r597545 = r597544 - r597542;
double r597546 = r597543 / r597545;
return r597546;
}




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
rmApplied sub-div0.0
Final simplification0.0
herbie shell --seed 2020081 +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)))