\frac{x - y}{z - y}\frac{x - y}{z - y}double f(double x, double y, double z) {
double r441481 = x;
double r441482 = y;
double r441483 = r441481 - r441482;
double r441484 = z;
double r441485 = r441484 - r441482;
double r441486 = r441483 / r441485;
return r441486;
}
double f(double x, double y, double z) {
double r441487 = x;
double r441488 = y;
double r441489 = r441487 - r441488;
double r441490 = z;
double r441491 = r441490 - r441488;
double r441492 = r441489 / r441491;
return r441492;
}




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