x + \frac{y \cdot \left(z - t\right)}{z - a}\frac{\frac{z - t}{z - a}}{\frac{1}{y}} + xdouble f(double x, double y, double z, double t, double a) {
double r628166 = x;
double r628167 = y;
double r628168 = z;
double r628169 = t;
double r628170 = r628168 - r628169;
double r628171 = r628167 * r628170;
double r628172 = a;
double r628173 = r628168 - r628172;
double r628174 = r628171 / r628173;
double r628175 = r628166 + r628174;
return r628175;
}
double f(double x, double y, double z, double t, double a) {
double r628176 = z;
double r628177 = t;
double r628178 = r628176 - r628177;
double r628179 = a;
double r628180 = r628176 - r628179;
double r628181 = r628178 / r628180;
double r628182 = 1.0;
double r628183 = y;
double r628184 = r628182 / r628183;
double r628185 = r628181 / r628184;
double r628186 = x;
double r628187 = r628185 + r628186;
return r628187;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t




Bits error versus a
Results
| Original | 11.7 |
|---|---|
| Target | 1.3 |
| Herbie | 1.4 |
Initial program 11.7
Simplified2.7
rmApplied add-cube-cbrt3.2
Applied associate-/r*3.2
rmApplied fma-udef3.2
Simplified2.8
rmApplied div-inv2.8
Applied associate-/r*1.4
Final simplification1.4
herbie shell --seed 2019353 +o rules:numerics
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTicks from plot-0.2.3.4, A"
:precision binary64
:herbie-target
(+ x (/ y (/ (- z a) (- z t))))
(+ x (/ (* y (- z t)) (- z a))))