\frac{x - y}{z - y}\frac{x - y}{z - y}double f(double x, double y, double z) {
double r764543 = x;
double r764544 = y;
double r764545 = r764543 - r764544;
double r764546 = z;
double r764547 = r764546 - r764544;
double r764548 = r764545 / r764547;
return r764548;
}
double f(double x, double y, double z) {
double r764549 = x;
double r764550 = y;
double r764551 = r764549 - r764550;
double r764552 = z;
double r764553 = r764552 - r764550;
double r764554 = r764551 / r764553;
return r764554;
}




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