x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\begin{array}{l}
\mathbf{if}\;a \le -2.6328690117788779 \cdot 10^{-126} \lor \neg \left(a \le 8.63734572451515964 \cdot 10^{-169}\right):\\
\;\;\;\;x + \left(\frac{y - z}{\sqrt[3]{a - z} \cdot \sqrt[3]{a - z}} \cdot \frac{\sqrt[3]{t - x} \cdot \sqrt[3]{t - x}}{\sqrt[3]{\sqrt[3]{a - z} \cdot \sqrt[3]{a - z}}}\right) \cdot \frac{\sqrt[3]{t - x}}{\sqrt[3]{\sqrt[3]{a - z}}}\\
\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 <= -2.632869011778878e-126) || !(a <= 8.63734572451516e-169))) {
VAR = ((double) (x + ((double) (((double) (((double) (((double) (y - z)) / ((double) (((double) cbrt(((double) (a - z)))) * ((double) cbrt(((double) (a - z)))))))) * ((double) (((double) (((double) cbrt(((double) (t - x)))) * ((double) cbrt(((double) (t - x)))))) / ((double) cbrt(((double) (((double) cbrt(((double) (a - z)))) * ((double) cbrt(((double) (a - z)))))))))))) * ((double) (((double) cbrt(((double) (t - x)))) / ((double) cbrt(((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 | 24.0 |
|---|---|
| Target | 11.6 |
| Herbie | 10.7 |
if a < -2.6328690117788779e-126 or 8.63734572451515964e-169 < a Initial program 22.3
rmApplied add-cube-cbrt22.7
Applied times-frac9.8
rmApplied add-cube-cbrt9.8
Applied cbrt-prod9.9
Applied add-cube-cbrt10.0
Applied times-frac10.0
Applied associate-*r*9.6
if -2.6328690117788779e-126 < a < 8.63734572451515964e-169Initial program 29.8
Taylor expanded around inf 14.3
Final simplification10.7
herbie shell --seed 2020162
(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))))