x + y \cdot \frac{z - t}{a - t}\begin{array}{l}
\mathbf{if}\;y \cdot \frac{z - t}{a - t} = -inf.0:\\
\;\;\;\;x + \frac{y \cdot \left(z - t\right)}{a - t}\\
\mathbf{elif}\;y \cdot \frac{z - t}{a - t} \le 2.9907223722640885 \cdot 10^{276}:\\
\;\;\;\;x + y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot \frac{\frac{\sqrt[3]{z - t} \cdot \sqrt[3]{z - t}}{\sqrt[3]{a - t}}}{\sqrt[3]{\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}}}\right) \cdot \frac{\frac{\sqrt[3]{z - t}}{\sqrt[3]{a - t}}}{\sqrt[3]{\sqrt[3]{a - t}}}\\
\end{array}double code(double x, double y, double z, double t, double a) {
return ((double) (x + ((double) (y * ((double) (((double) (z - t)) / ((double) (a - t))))))));
}
double code(double x, double y, double z, double t, double a) {
double VAR;
if ((((double) (y * ((double) (((double) (z - t)) / ((double) (a - t)))))) <= -inf.0)) {
VAR = ((double) (x + ((double) (((double) (y * ((double) (z - t)))) / ((double) (a - t))))));
} else {
double VAR_1;
if ((((double) (y * ((double) (((double) (z - t)) / ((double) (a - t)))))) <= 2.9907223722640885e+276)) {
VAR_1 = ((double) (x + ((double) (y * ((double) (((double) (z - t)) / ((double) (a - t))))))));
} else {
VAR_1 = ((double) (x + ((double) (((double) (y * ((double) (((double) (((double) (((double) cbrt(((double) (z - t)))) * ((double) cbrt(((double) (z - t)))))) / ((double) cbrt(((double) (a - t)))))) / ((double) cbrt(((double) (((double) cbrt(((double) (a - t)))) * ((double) cbrt(((double) (a - t)))))))))))) * ((double) (((double) (((double) cbrt(((double) (z - t)))) / ((double) cbrt(((double) (a - t)))))) / ((double) cbrt(((double) cbrt(((double) (a - t))))))))))));
}
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 | 1.3 |
|---|---|
| Target | 0.5 |
| Herbie | 0.7 |
if (* y (/ (- z t) (- a t))) < -inf.0Initial program 64.0
rmApplied associate-*r/0.2
if -inf.0 < (* y (/ (- z t) (- a t))) < 2.9907223722640885e+276Initial program 0.3
if 2.9907223722640885e+276 < (* y (/ (- z t) (- a t))) Initial program 19.4
rmApplied add-cube-cbrt20.1
Applied associate-/r*20.2
rmApplied add-cube-cbrt20.2
Applied cbrt-prod20.3
Applied add-cube-cbrt20.2
Applied times-frac20.2
Applied times-frac20.1
Applied associate-*r*14.4
Final simplification0.7
herbie shell --seed 2020140
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisLine from plot-0.2.3.4, B"
:precision binary64
:herbie-target
(if (< y -8.508084860551241e-17) (+ x (* y (/ (- z t) (- a t)))) (if (< y 2.894426862792089e-49) (+ x (* (* y (- z t)) (/ 1.0 (- a t)))) (+ x (* y (/ (- z t) (- a t))))))
(+ x (* y (/ (- z t) (- a t)))))