x + \left(y - x\right) \cdot \frac{z}{t}\begin{array}{l}
\mathbf{if}\;x \leq -1.6621494539914967 \cdot 10^{-259} \lor \neg \left(x \leq 4.0513237570269454 \cdot 10^{-197}\right):\\
\;\;\;\;x + \left(y - x\right) \cdot \frac{z}{t}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y - x}{\sqrt[3]{t} \cdot \sqrt[3]{t}} \cdot \frac{z}{\sqrt[3]{t}}\\
\end{array}double code(double x, double y, double z, double t) {
return ((double) (x + ((double) (((double) (y - x)) * (z / t)))));
}
double code(double x, double y, double z, double t) {
double VAR;
if (((x <= -1.6621494539914967e-259) || !(x <= 4.0513237570269454e-197))) {
VAR = ((double) (x + ((double) (((double) (y - x)) * (z / t)))));
} else {
VAR = ((double) (x + ((double) ((((double) (y - x)) / ((double) (((double) cbrt(t)) * ((double) cbrt(t))))) * (z / ((double) cbrt(t)))))));
}
return VAR;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
Results
| Original | 1.9 |
|---|---|
| Target | 2.0 |
| Herbie | 1.8 |
if x < -1.6621494539914967e-259 or 4.0513237570269454e-197 < x Initial program Error: 1.4 bits
if -1.6621494539914967e-259 < x < 4.0513237570269454e-197Initial program Error: 5.0 bits
rmApplied add-cube-cbrtError: 5.7 bits
Applied *-un-lft-identityError: 5.7 bits
Applied times-fracError: 5.7 bits
Applied associate-*r*Error: 4.3 bits
SimplifiedError: 4.3 bits
Final simplificationError: 1.8 bits
herbie shell --seed 2020200
(FPCore (x y z t)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:tickPosition from plot-0.2.3.4"
:precision binary64
:herbie-target
(if (< (* (- y x) (/ z t)) -1013646692435.8867) (+ x (/ (- y x) (/ t z))) (if (< (* (- y x) (/ z t)) -0.0) (+ x (/ (* (- y x) z) t)) (+ x (/ (- y x) (/ t z)))))
(+ x (* (- y x) (/ z t))))