x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\begin{array}{l}
\mathbf{if}\;a \le -5.00499911306160384 \cdot 10^{-132}:\\
\;\;\;\;x + \left(\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]{\sqrt[3]{a - z}}}\right) \cdot \frac{\sqrt[3]{\sqrt[3]{t - x} \cdot \sqrt[3]{t - x}}}{\sqrt[3]{\sqrt[3]{\sqrt[3]{a - z}} \cdot \sqrt[3]{\sqrt[3]{a - z}}}}\right) \cdot \frac{\sqrt[3]{\sqrt[3]{t - x}}}{\sqrt[3]{\sqrt[3]{\sqrt[3]{a - z}}}}\\
\mathbf{elif}\;a \le 1.3516224103259182 \cdot 10^{-197}:\\
\;\;\;\;\left(\frac{x \cdot y}{z} + t\right) - \frac{t \cdot y}{z}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{\frac{y - z}{\sqrt[3]{a - z} \cdot \sqrt[3]{a - z}}}{\sqrt[3]{\sqrt[3]{a - z}} \cdot \sqrt[3]{\sqrt[3]{a - z}}} \cdot \frac{t - x}{\sqrt[3]{\sqrt[3]{a - z}}}\\
\end{array}double code(double x, double y, double z, double t, double a) {
return (x + (((y - z) * (t - x)) / (a - z)));
}
double code(double x, double y, double z, double t, double a) {
double VAR;
if ((a <= -5.004999113061604e-132)) {
VAR = (x + (((((y - z) / (cbrt((a - z)) * cbrt((a - z)))) * ((cbrt((t - x)) * cbrt((t - x))) / (cbrt(cbrt((a - z))) * cbrt(cbrt((a - z)))))) * (cbrt((cbrt((t - x)) * cbrt((t - x)))) / cbrt((cbrt(cbrt((a - z))) * cbrt(cbrt((a - z))))))) * (cbrt(cbrt((t - x))) / cbrt(cbrt(cbrt((a - z)))))));
} else {
double VAR_1;
if ((a <= 1.3516224103259182e-197)) {
VAR_1 = ((((x * y) / z) + t) - ((t * y) / z));
} else {
VAR_1 = (x + ((((y - z) / (cbrt((a - z)) * cbrt((a - z)))) / (cbrt(cbrt((a - z))) * cbrt(cbrt((a - z))))) * ((t - x) / cbrt(cbrt((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.8 |
|---|---|
| Target | 11.8 |
| Herbie | 10.5 |
if a < -5.004999113061604e-132Initial program 23.0
rmApplied add-cube-cbrt23.4
Applied times-frac9.5
rmApplied add-cube-cbrt9.7
Applied add-cube-cbrt9.8
Applied times-frac9.8
Applied associate-*r*9.4
rmApplied add-cube-cbrt9.4
Applied cbrt-prod9.4
Applied add-cube-cbrt9.4
Applied cbrt-prod9.4
Applied times-frac9.4
Applied associate-*r*9.4
if -5.004999113061604e-132 < a < 1.3516224103259182e-197Initial program 29.4
Taylor expanded around inf 12.2
if 1.3516224103259182e-197 < a Initial program 24.0
rmApplied add-cube-cbrt24.5
Applied times-frac10.4
rmApplied add-cube-cbrt10.6
Applied *-un-lft-identity10.6
Applied times-frac10.6
Applied associate-*r*10.6
Simplified10.6
Final simplification10.5
herbie shell --seed 2020078
(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))))