\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}\begin{array}{l}
\mathbf{if}\;t \leq -6.671541700787339 \cdot 10^{+222}:\\
\;\;\;\;x + \frac{z \cdot y}{t}\\
\mathbf{elif}\;t \leq -2.5969526405097103 \cdot 10^{+82}:\\
\;\;\;\;\left(x + y\right) - \frac{z - t}{\frac{a - t}{y}}\\
\mathbf{elif}\;t \leq -6.436488181590957 \cdot 10^{+42} \lor \neg \left(t \leq 6.426053483705132 \cdot 10^{+76}\right):\\
\;\;\;\;x + \frac{z \cdot y}{t}\\
\mathbf{else}:\\
\;\;\;\;\left(x + y\right) - \frac{\sqrt[3]{z - t} \cdot \sqrt[3]{z - t}}{\sqrt[3]{\sqrt[3]{\sqrt[3]{a - t}}} \cdot \sqrt[3]{\sqrt[3]{\sqrt[3]{a - t}}}} \cdot \left(\frac{y}{\sqrt[3]{\sqrt[3]{\sqrt[3]{a - t}}}} \cdot \frac{\sqrt[3]{z - t}}{{\left(\sqrt[3]{\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}}\right)}^{4}}\right)\\
\end{array}(FPCore (x y z t a) :precision binary64 (- (+ x y) (/ (* (- z t) y) (- a t))))
(FPCore (x y z t a)
:precision binary64
(if (<= t -6.671541700787339e+222)
(+ x (/ (* z y) t))
(if (<= t -2.5969526405097103e+82)
(- (+ x y) (/ (- z t) (/ (- a t) y)))
(if (or (<= t -6.436488181590957e+42) (not (<= t 6.426053483705132e+76)))
(+ x (/ (* z y) t))
(-
(+ x y)
(*
(/
(* (cbrt (- z t)) (cbrt (- z t)))
(* (cbrt (cbrt (cbrt (- a t)))) (cbrt (cbrt (cbrt (- a t))))))
(*
(/ y (cbrt (cbrt (cbrt (- a t)))))
(/
(cbrt (- z t))
(pow (cbrt (* (cbrt (- a t)) (cbrt (- a t)))) 4.0)))))))))double code(double x, double y, double z, double t, double a) {
return ((double) (((double) (x + y)) - (((double) (((double) (z - t)) * y)) / ((double) (a - t)))));
}
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -6.671541700787339e+222)) {
tmp = ((double) (x + (((double) (z * y)) / t)));
} else {
double tmp_1;
if ((t <= -2.5969526405097103e+82)) {
tmp_1 = ((double) (((double) (x + y)) - (((double) (z - t)) / (((double) (a - t)) / y))));
} else {
double tmp_2;
if (((t <= -6.436488181590957e+42) || !(t <= 6.426053483705132e+76))) {
tmp_2 = ((double) (x + (((double) (z * y)) / t)));
} else {
tmp_2 = ((double) (((double) (x + y)) - ((double) ((((double) (((double) cbrt(((double) (z - t)))) * ((double) cbrt(((double) (z - t)))))) / ((double) (((double) cbrt(((double) cbrt(((double) cbrt(((double) (a - t)))))))) * ((double) cbrt(((double) cbrt(((double) cbrt(((double) (a - t))))))))))) * ((double) ((y / ((double) cbrt(((double) cbrt(((double) cbrt(((double) (a - t))))))))) * (((double) cbrt(((double) (z - t)))) / ((double) pow(((double) cbrt(((double) (((double) cbrt(((double) (a - t)))) * ((double) cbrt(((double) (a - t)))))))), 4.0)))))))));
}
tmp_1 = tmp_2;
}
tmp = tmp_1;
}
return tmp;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t




Bits error versus a
Results
| Original | 16.1 |
|---|---|
| Target | 8.1 |
| Herbie | 9.9 |
if t < -6.6715417007873388e222 or -2.5969526405097103e82 < t < -6.43648818159095696e42 or 6.42605348370513173e76 < t Initial program 29.8
Taylor expanded around inf 17.1
Simplified17.1
if -6.6715417007873388e222 < t < -2.5969526405097103e82Initial program 24.7
rmApplied associate-/l*_binary6416.2
if -6.43648818159095696e42 < t < 6.42605348370513173e76Initial program 7.0
rmApplied add-cube-cbrt_binary647.2
Applied times-frac_binary645.1
rmApplied add-cube-cbrt_binary645.1
Applied cbrt-prod_binary645.2
Applied *-un-lft-identity_binary645.2
Applied times-frac_binary645.2
Applied associate-*r*_binary645.4
Simplified5.4
rmApplied add-cube-cbrt_binary645.4
Applied *-un-lft-identity_binary645.4
Applied times-frac_binary645.5
Applied associate-*r*_binary645.5
Simplified5.6
rmApplied add-cube-cbrt_binary645.6
Applied times-frac_binary645.6
Applied associate-*l*_binary644.7
Simplified4.7
Final simplification9.9
herbie shell --seed 2020210
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTick from plot-0.2.3.4, B"
:precision binary64
:herbie-target
(if (< (- (+ x y) (/ (* (- z t) y) (- a t))) -1.3664970889390727e-07) (- (+ y x) (* (* (- z t) (/ 1.0 (- a t))) y)) (if (< (- (+ x y) (/ (* (- z t) y) (- a t))) 1.4754293444577233e-239) (/ (- (* y (- a z)) (* x t)) (- a t)) (- (+ y x) (* (* (- z t) (/ 1.0 (- a t))) y))))
(- (+ x y) (/ (* (- z t) y) (- a t))))