\frac{x - y}{z - y}\frac{x}{z - y} - \frac{y}{z - y}double f(double x, double y, double z) {
double r381246 = x;
double r381247 = y;
double r381248 = r381246 - r381247;
double r381249 = z;
double r381250 = r381249 - r381247;
double r381251 = r381248 / r381250;
return r381251;
}
double f(double x, double y, double z) {
double r381252 = x;
double r381253 = z;
double r381254 = y;
double r381255 = r381253 - r381254;
double r381256 = r381252 / r381255;
double r381257 = r381254 / r381255;
double r381258 = r381256 - r381257;
return r381258;
}




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