\frac{x}{y} \cdot \left(z - t\right) + t\begin{array}{l}
\mathbf{if}\;x \le -3.97561591273634437 \cdot 10^{-31} \lor \neg \left(x \le 6.14205727121186749 \cdot 10^{109}\right):\\
\;\;\;\;x \cdot \frac{z - t}{y} + t\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sqrt[3]{y} \cdot \sqrt[3]{y}} \cdot \left(\frac{x}{\sqrt[3]{y}} \cdot \left(z - t\right)\right) + t\\
\end{array}double code(double x, double y, double z, double t) {
return ((double) (((double) (((double) (x / y)) * ((double) (z - t)))) + t));
}
double code(double x, double y, double z, double t) {
double VAR;
if (((x <= -3.975615912736344e-31) || !(x <= 6.1420572712118675e+109))) {
VAR = ((double) (((double) (x * ((double) (((double) (z - t)) / y)))) + t));
} else {
VAR = ((double) (((double) (((double) (1.0 / ((double) (((double) cbrt(y)) * ((double) cbrt(y)))))) * ((double) (((double) (x / ((double) cbrt(y)))) * ((double) (z - t)))))) + t));
}
return VAR;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
Results
| Original | 2.1 |
|---|---|
| Target | 2.4 |
| Herbie | 1.5 |
if x < -3.97561591273634437e-31 or 6.14205727121186749e109 < x Initial program 4.0
rmApplied div-inv4.1
Applied associate-*l*2.5
Simplified2.4
if -3.97561591273634437e-31 < x < 6.14205727121186749e109Initial program 1.2
rmApplied add-cube-cbrt1.6
Applied *-un-lft-identity1.6
Applied times-frac1.7
Applied associate-*l*1.0
Final simplification1.5
herbie shell --seed 2020177
(FPCore (x y z t)
:name "Numeric.Signal.Multichannel:$cget from hsignal-0.2.7.1"
:precision binary64
:herbie-target
(if (< z 2.759456554562692e-282) (+ (* (/ x y) (- z t)) t) (if (< z 2.326994450874436e-110) (+ (* x (/ (- z t) y)) t) (+ (* (/ x y) (- z t)) t)))
(+ (* (/ x y) (- z t)) t))