\frac{x - y}{z - y}\frac{x - y}{z - y}double f(double x, double y, double z) {
double r625506 = x;
double r625507 = y;
double r625508 = r625506 - r625507;
double r625509 = z;
double r625510 = r625509 - r625507;
double r625511 = r625508 / r625510;
return r625511;
}
double f(double x, double y, double z) {
double r625512 = x;
double r625513 = y;
double r625514 = r625512 - r625513;
double r625515 = z;
double r625516 = r625515 - r625513;
double r625517 = r625514 / r625516;
return r625517;
}




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
rmApplied div-sub0.0
rmApplied sub-div0.0
Final simplification0.0
herbie shell --seed 2020081
(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)))