\frac{x - y}{z - y}\frac{x - y}{z - y}double f(double x, double y, double z) {
double r522645 = x;
double r522646 = y;
double r522647 = r522645 - r522646;
double r522648 = z;
double r522649 = r522648 - r522646;
double r522650 = r522647 / r522649;
return r522650;
}
double f(double x, double y, double z) {
double r522651 = x;
double r522652 = y;
double r522653 = r522651 - r522652;
double r522654 = z;
double r522655 = r522654 - r522652;
double r522656 = r522653 / r522655;
return r522656;
}




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 2019305
(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)))