\frac{x - y}{z - y}\frac{x}{z - y} - \frac{y}{z - y}double f(double x, double y, double z) {
double r723748 = x;
double r723749 = y;
double r723750 = r723748 - r723749;
double r723751 = z;
double r723752 = r723751 - r723749;
double r723753 = r723750 / r723752;
return r723753;
}
double f(double x, double y, double z) {
double r723754 = x;
double r723755 = z;
double r723756 = y;
double r723757 = r723755 - r723756;
double r723758 = r723754 / r723757;
double r723759 = r723756 / r723757;
double r723760 = r723758 - r723759;
return r723760;
}




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