\frac{x - y}{z - y}\frac{x - y}{z - y}double f(double x, double y, double z) {
double r404284 = x;
double r404285 = y;
double r404286 = r404284 - r404285;
double r404287 = z;
double r404288 = r404287 - r404285;
double r404289 = r404286 / r404288;
return r404289;
}
double f(double x, double y, double z) {
double r404290 = x;
double r404291 = y;
double r404292 = r404290 - r404291;
double r404293 = z;
double r404294 = r404293 - r404291;
double r404295 = r404292 / r404294;
return r404295;
}




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