\frac{x - y}{z - y}\frac{x - y}{z - y}double f(double x, double y, double z) {
double r644814 = x;
double r644815 = y;
double r644816 = r644814 - r644815;
double r644817 = z;
double r644818 = r644817 - r644815;
double r644819 = r644816 / r644818;
return r644819;
}
double f(double x, double y, double z) {
double r644820 = x;
double r644821 = y;
double r644822 = r644820 - r644821;
double r644823 = z;
double r644824 = r644823 - r644821;
double r644825 = r644822 / r644824;
return r644825;
}




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