\frac{x - y}{z - y}\frac{x - y}{z - y}double f(double x, double y, double z) {
double r346030 = x;
double r346031 = y;
double r346032 = r346030 - r346031;
double r346033 = z;
double r346034 = r346033 - r346031;
double r346035 = r346032 / r346034;
return r346035;
}
double f(double x, double y, double z) {
double r346036 = x;
double r346037 = y;
double r346038 = r346036 - r346037;
double r346039 = z;
double r346040 = r346039 - r346037;
double r346041 = r346038 / r346040;
return r346041;
}




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 2019322 +o rules:numerics
(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)))