\frac{x - y}{z - y}\frac{x - y}{z - y}double f(double x, double y, double z) {
double r846337 = x;
double r846338 = y;
double r846339 = r846337 - r846338;
double r846340 = z;
double r846341 = r846340 - r846338;
double r846342 = r846339 / r846341;
return r846342;
}
double f(double x, double y, double z) {
double r846343 = x;
double r846344 = y;
double r846345 = r846343 - r846344;
double r846346 = z;
double r846347 = r846346 - r846344;
double r846348 = r846345 / r846347;
return r846348;
}




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