\frac{x - y}{z - y}\frac{x - y}{z - y}double f(double x, double y, double z) {
double r470435 = x;
double r470436 = y;
double r470437 = r470435 - r470436;
double r470438 = z;
double r470439 = r470438 - r470436;
double r470440 = r470437 / r470439;
return r470440;
}
double f(double x, double y, double z) {
double r470441 = x;
double r470442 = y;
double r470443 = r470441 - r470442;
double r470444 = z;
double r470445 = r470444 - r470442;
double r470446 = r470443 / r470445;
return r470446;
}




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