\frac{x - y}{z - y}\frac{x}{z - y} - \frac{y}{z - y}double f(double x, double y, double z) {
double r605679 = x;
double r605680 = y;
double r605681 = r605679 - r605680;
double r605682 = z;
double r605683 = r605682 - r605680;
double r605684 = r605681 / r605683;
return r605684;
}
double f(double x, double y, double z) {
double r605685 = x;
double r605686 = z;
double r605687 = y;
double r605688 = r605686 - r605687;
double r605689 = r605685 / r605688;
double r605690 = r605687 / r605688;
double r605691 = r605689 - r605690;
return r605691;
}




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