\frac{x - y}{z - y}\frac{x - y}{z - y}double f(double x, double y, double z) {
double r511132 = x;
double r511133 = y;
double r511134 = r511132 - r511133;
double r511135 = z;
double r511136 = r511135 - r511133;
double r511137 = r511134 / r511136;
return r511137;
}
double f(double x, double y, double z) {
double r511138 = x;
double r511139 = y;
double r511140 = r511138 - r511139;
double r511141 = z;
double r511142 = r511141 - r511139;
double r511143 = r511140 / r511142;
return r511143;
}




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