\frac{x - y}{z - y}\frac{x}{z - y} - \frac{y}{z - y}double f(double x, double y, double z) {
double r841179 = x;
double r841180 = y;
double r841181 = r841179 - r841180;
double r841182 = z;
double r841183 = r841182 - r841180;
double r841184 = r841181 / r841183;
return r841184;
}
double f(double x, double y, double z) {
double r841185 = x;
double r841186 = z;
double r841187 = y;
double r841188 = r841186 - r841187;
double r841189 = r841185 / r841188;
double r841190 = r841187 / r841188;
double r841191 = r841189 - r841190;
return r841191;
}




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