\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}}
\begin{array}{l}
t_1 := \sqrt[3]{\sqrt{e^{t}}}\\
\left(\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot {\left(t_1 \cdot t_1\right)}^{t}\right) \cdot \left({\left(\sqrt[3]{e^{t \cdot 0.3333333333333333}}\right)}^{t} \cdot {\left(\sqrt[3]{\sqrt{\sqrt[3]{e^{t}}}}\right)}^{t}\right)
\end{array}
(FPCore (x y z t) :precision binary64 (* (* (- (* x 0.5) y) (sqrt (* z 2.0))) (exp (/ (* t t) 2.0))))
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (cbrt (sqrt (exp t)))))
(*
(* (* (- (* x 0.5) y) (sqrt (* z 2.0))) (pow (* t_1 t_1) t))
(*
(pow (cbrt (exp (* t 0.3333333333333333))) t)
(pow (cbrt (sqrt (cbrt (exp t)))) t)))))double code(double x, double y, double z, double t) {
return (((x * 0.5) - y) * sqrt(z * 2.0)) * exp((t * t) / 2.0);
}
double code(double x, double y, double z, double t) {
double t_1 = cbrt(sqrt(exp(t)));
return ((((x * 0.5) - y) * sqrt(z * 2.0)) * pow((t_1 * t_1), t)) * (pow(cbrt(exp(t * 0.3333333333333333)), t) * pow(cbrt(sqrt(cbrt(exp(t)))), t));
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
Results
| Original | 0.3 |
|---|---|
| Target | 0.3 |
| Herbie | 0.3 |
Initial program 0.3
Simplified0.3
Applied add-cube-cbrt_binary640.3
Applied unpow-prod-down_binary640.3
Applied associate-*r*_binary640.3
Applied add-cube-cbrt_binary640.3
Applied cbrt-prod_binary640.3
Applied unpow-prod-down_binary640.3
Simplified0.3
Simplified0.3
Taylor expanded in t around inf 0.3
Final simplification0.3
herbie shell --seed 2021275
(FPCore (x y z t)
:name "Data.Number.Erf:$cinvnormcdf from erf-2.0.0.0, A"
:precision binary64
:herbie-target
(* (* (- (* x 0.5) y) (sqrt (* z 2.0))) (pow (exp 1.0) (/ (* t t) 2.0)))
(* (* (- (* x 0.5) y) (sqrt (* z 2.0))) (exp (/ (* t t) 2.0))))