x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\begin{array}{l}
\mathbf{if}\;a \le -4.74309325308018983 \cdot 10^{-69} \lor \neg \left(a \le 5.7279415036639112 \cdot 10^{-148}\right):\\
\;\;\;\;x + \frac{\sqrt[3]{y - z} \cdot \sqrt[3]{y - z}}{\sqrt[3]{a - z}} \cdot \left(\frac{\sqrt[3]{y - z}}{\sqrt[3]{a - z}} \cdot \frac{t - x}{\sqrt[3]{a - z}}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\frac{x \cdot y}{z} + t\right) - \frac{t \cdot y}{z}\\
\end{array}double code(double x, double y, double z, double t, double a) {
return ((double) (x + ((double) (((double) (((double) (y - z)) * ((double) (t - x)))) / ((double) (a - z))))));
}
double code(double x, double y, double z, double t, double a) {
double VAR;
if (((a <= -4.74309325308019e-69) || !(a <= 5.727941503663911e-148))) {
VAR = ((double) (x + ((double) (((double) (((double) (((double) cbrt(((double) (y - z)))) * ((double) cbrt(((double) (y - z)))))) / ((double) cbrt(((double) (a - z)))))) * ((double) (((double) (((double) cbrt(((double) (y - z)))) / ((double) cbrt(((double) (a - z)))))) * ((double) (((double) (t - x)) / ((double) cbrt(((double) (a - z))))))))))));
} else {
VAR = ((double) (((double) (((double) (((double) (x * y)) / z)) + t)) - ((double) (((double) (t * y)) / z))));
}
return VAR;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t




Bits error versus a
Results
| Original | 23.8 |
|---|---|
| Target | 11.6 |
| Herbie | 11.1 |
if a < -4.74309325308018983e-69 or 5.7279415036639112e-148 < a Initial program 22.2
rmApplied add-cube-cbrt22.6
Applied times-frac9.2
rmApplied add-cube-cbrt9.1
Applied times-frac9.1
Applied associate-*l*9.0
if -4.74309325308018983e-69 < a < 5.7279415036639112e-148Initial program 27.8
Taylor expanded around inf 16.6
Final simplification11.1
herbie shell --seed 2020155
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.Axis.Types:invLinMap from Chart-1.5.3"
:precision binary64
:herbie-target
(if (< z -1.2536131056095036e+188) (- t (* (/ y z) (- t x))) (if (< z 4.446702369113811e+64) (+ x (/ (- y z) (/ (- a z) (- t x)))) (- t (* (/ y z) (- t x)))))
(+ x (/ (* (- y z) (- t x)) (- a z))))