\frac{x - y}{z - y}\frac{x - y}{z - y}double f(double x, double y, double z) {
double r695781 = x;
double r695782 = y;
double r695783 = r695781 - r695782;
double r695784 = z;
double r695785 = r695784 - r695782;
double r695786 = r695783 / r695785;
return r695786;
}
double f(double x, double y, double z) {
double r695787 = x;
double r695788 = y;
double r695789 = r695787 - r695788;
double r695790 = z;
double r695791 = r695790 - r695788;
double r695792 = r695789 / r695791;
return r695792;
}




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
Final simplification0.0
herbie shell --seed 2020047
(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)))