\frac{x - y}{z - y}\frac{x}{z - y} - \frac{y}{z - y}double f(double x, double y, double z) {
double r606607 = x;
double r606608 = y;
double r606609 = r606607 - r606608;
double r606610 = z;
double r606611 = r606610 - r606608;
double r606612 = r606609 / r606611;
return r606612;
}
double f(double x, double y, double z) {
double r606613 = x;
double r606614 = z;
double r606615 = y;
double r606616 = r606614 - r606615;
double r606617 = r606613 / r606616;
double r606618 = r606615 / r606616;
double r606619 = r606617 - r606618;
return r606619;
}




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 2020020
(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)))