\frac{x - y}{z - y}\frac{x}{z - y} - \frac{y}{z - y}double f(double x, double y, double z) {
double r2466 = x;
double r2467 = y;
double r2468 = r2466 - r2467;
double r2469 = z;
double r2470 = r2469 - r2467;
double r2471 = r2468 / r2470;
return r2471;
}
double f(double x, double y, double z) {
double r2472 = x;
double r2473 = z;
double r2474 = y;
double r2475 = r2473 - r2474;
double r2476 = r2472 / r2475;
double r2477 = r2474 / r2475;
double r2478 = r2476 - r2477;
return r2478;
}




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