x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\begin{array}{l}
\mathbf{if}\;a \le -6.469423575567743 \cdot 10^{-238}:\\
\;\;\;\;x + \frac{\frac{y - z}{\sqrt[3]{a - z} \cdot \sqrt[3]{a - z}}}{\sqrt[3]{\sqrt[3]{a - z} \cdot \sqrt[3]{a - z}}} \cdot \frac{t - x}{\sqrt[3]{\sqrt[3]{a - z}}}\\
\mathbf{elif}\;a \le 4.1559126877988541 \cdot 10^{-106}:\\
\;\;\;\;\left(\frac{x \cdot y}{z} + t\right) - \frac{t \cdot y}{z}\\
\mathbf{else}:\\
\;\;\;\;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)\\
\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 <= -6.469423575567743e-238)) {
VAR = ((double) (x + ((double) (((double) (((double) (((double) (y - z)) / ((double) (((double) cbrt(((double) (a - z)))) * ((double) cbrt(((double) (a - z)))))))) / ((double) cbrt(((double) (((double) cbrt(((double) (a - z)))) * ((double) cbrt(((double) (a - z)))))))))) * ((double) (((double) (t - x)) / ((double) cbrt(((double) cbrt(((double) (a - z))))))))))));
} else {
double VAR_1;
if ((a <= 4.155912687798854e-106)) {
VAR_1 = ((double) (((double) (((double) (((double) (x * y)) / z)) + t)) - ((double) (((double) (t * y)) / z))));
} else {
VAR_1 = ((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))))))))))));
}
VAR = VAR_1;
}
return VAR;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t




Bits error versus a
Results
| Original | 24.5 |
|---|---|
| Target | 11.7 |
| Herbie | 11.0 |
if a < -6.469423575567743e-238Initial program 23.9
rmApplied add-cube-cbrt24.3
Applied times-frac11.5
rmApplied add-cube-cbrt11.5
Applied cbrt-prod11.6
Applied *-un-lft-identity11.6
Applied times-frac11.6
Applied associate-*r*11.4
Simplified11.4
if -6.469423575567743e-238 < a < 4.1559126877988541e-106Initial program 30.4
Taylor expanded around inf 13.6
if 4.1559126877988541e-106 < a Initial program 22.0
rmApplied add-cube-cbrt22.4
Applied times-frac9.1
rmApplied add-cube-cbrt9.0
Applied times-frac9.0
Applied associate-*l*9.0
Final simplification11.0
herbie shell --seed 2020147
(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))))