\frac{x - y}{z - y}\frac{x}{z - y} - \frac{y}{z - y}double f(double x, double y, double z) {
double r696717 = x;
double r696718 = y;
double r696719 = r696717 - r696718;
double r696720 = z;
double r696721 = r696720 - r696718;
double r696722 = r696719 / r696721;
return r696722;
}
double f(double x, double y, double z) {
double r696723 = x;
double r696724 = z;
double r696725 = y;
double r696726 = r696724 - r696725;
double r696727 = r696723 / r696726;
double r696728 = r696725 / r696726;
double r696729 = r696727 - r696728;
return r696729;
}




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