\frac{x - y}{z - y}\frac{x}{z - y} - \frac{y}{z - y}double f(double x, double y, double z) {
double r742570 = x;
double r742571 = y;
double r742572 = r742570 - r742571;
double r742573 = z;
double r742574 = r742573 - r742571;
double r742575 = r742572 / r742574;
return r742575;
}
double f(double x, double y, double z) {
double r742576 = x;
double r742577 = z;
double r742578 = y;
double r742579 = r742577 - r742578;
double r742580 = r742576 / r742579;
double r742581 = r742578 / r742579;
double r742582 = r742580 - r742581;
return r742582;
}




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