Average Error: 0.3 → 0.3
Time: 12.2s
Precision: binary64
Cost: 13760
\[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}}\]
\[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}}\]
\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}}
\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}}
(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
 (* (* (- (* x 0.5) y) (sqrt (* z 2.0))) (exp (/ (* t t) 2.0))))
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) {
	return (((x * 0.5) - y) * sqrt(z * 2.0)) * exp((t * t) / 2.0);
}

Error

Bits error versus x

Bits error versus y

Bits error versus z

Bits error versus t

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original0.3
Target0.3
Herbie0.3
\[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot {\left(e^{1}\right)}^{\left(\frac{t \cdot t}{2}\right)}\]

Alternatives

Alternative 1
Error1.4
Cost47040
\[e^{\frac{t \cdot t}{2}} \cdot \left(\sqrt[3]{\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}} \cdot \left(\sqrt[3]{\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}} \cdot \sqrt[3]{\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}}\right)\right)\]
Alternative 2
Error32.2
Cost46400
\[e^{\frac{t \cdot t}{2}} \cdot \left(\left(\sqrt{\sqrt{z \cdot 2}} \cdot \sqrt{x \cdot 0.5 - y}\right) \cdot \left(\sqrt{\sqrt{z \cdot 2}} \cdot \sqrt{x \cdot 0.5 - y}\right)\right)\]
Alternative 3
Error1.4
Cost46272
\[e^{\frac{t \cdot t}{2}} \cdot \left(\sqrt[3]{\sqrt{z \cdot 2}} \cdot \left(\left(x \cdot 0.5 - y\right) \cdot \left(\sqrt[3]{\sqrt{z \cdot 2}} \cdot \sqrt[3]{\sqrt{z \cdot 2}}\right)\right)\right)\]
Alternative 4
Error0.3
Cost45952
\[\left(\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \sqrt{{\left(\sqrt{e^{t}}\right)}^{t}}\right) \cdot \sqrt{e^{\frac{t \cdot t}{2}}}\]
Alternative 5
Error0.6
Cost39488
\[e^{\frac{t \cdot t}{2}} \cdot \left(\sqrt{\sqrt{2}} \cdot \left(\sqrt{\sqrt{2}} \cdot \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z}\right)\right)\right)\]
Alternative 6
Error31.4
Cost39296
\[e^{\frac{t \cdot t}{2}} \cdot \left(\sqrt{\sqrt{2}} \cdot \left(\left(-y \cdot \sqrt{z}\right) \cdot \sqrt{\sqrt{2}}\right)\right)\]
Alternative 7
Error0.6
Cost34048
\[\sqrt{e^{\frac{t \cdot t}{2}}} \cdot \left(\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \sqrt{{\left(0.5 \cdot t + \left(1 + \left(t \cdot t\right) \cdot \left(0.125 + t \cdot 0.020833333333333332\right)\right)\right)}^{t}}\right)\]
Alternative 8
Error1.4
Cost33728
\[e^{\frac{t \cdot t}{2}} \cdot \left(\left(\sqrt[3]{x \cdot 0.5 - y} \cdot \sqrt[3]{x \cdot 0.5 - y}\right) \cdot \left(\sqrt{z \cdot 2} \cdot \sqrt[3]{x \cdot 0.5 - y}\right)\right)\]
Alternative 9
Error31.8
Cost33600
\[e^{\frac{t \cdot t}{2}} \cdot \left(\sqrt{\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}} \cdot \sqrt{\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}}\right)\]
Alternative 10
Error32.1
Cost33344
\[e^{\frac{t \cdot t}{2}} \cdot \left(\sqrt{2} \cdot \left(\sqrt{x \cdot 0.5 - y} \cdot \left(\sqrt{z} \cdot \sqrt{x \cdot 0.5 - y}\right)\right)\right)\]
Alternative 11
Error0.6
Cost33216
\[e^{\frac{t \cdot t}{2}} \cdot \left(\sqrt{\sqrt{z \cdot 2}} \cdot \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{\sqrt{z \cdot 2}}\right)\right)\]
Alternative 12
Error0.4
Cost33088
\[e^{\frac{t \cdot t}{2}} \cdot \left(\sqrt{\sqrt{2}} \cdot \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot \sqrt{2}}\right)\right)\]
Alternative 13
Error31.5
Cost32960
\[e^{\frac{t \cdot t}{2}} \cdot \left(\sqrt{\sqrt{2}} \cdot \left(0.5 \cdot \left(x \cdot \sqrt{z \cdot \sqrt{2}}\right)\right)\right)\]
Alternative 14
Error31.3
Cost32896
\[e^{\frac{t \cdot t}{2}} \cdot \left(\sqrt{\sqrt{2}} \cdot \left(-y \cdot \sqrt{z \cdot \sqrt{2}}\right)\right)\]
Alternative 15
Error42.4
Cost27840
\[e^{\frac{t \cdot t}{2}} \cdot \frac{\sqrt{z \cdot 2} \cdot \left({\left(x \cdot 0.5\right)}^{3} - {y}^{3}\right)}{\left(x \cdot 0.5\right) \cdot \left(x \cdot 0.5\right) + \left(y \cdot y + \left(x \cdot 0.5\right) \cdot y\right)}\]
Alternative 16
Error32.1
Cost26944
\[e^{\frac{t \cdot t}{2}} \cdot \left(\sqrt{x \cdot 0.5 - y} \cdot \left(\sqrt{z \cdot 2} \cdot \sqrt{x \cdot 0.5 - y}\right)\right)\]
Alternative 17
Error38.3
Cost26624
\[e^{\frac{t \cdot t}{2}} \cdot \sqrt[3]{{\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right)}^{3}}\]
Alternative 18
Error1.0
Cost20800
\[\sqrt{z} \cdot \left(\left(x \cdot \sqrt{2}\right) \cdot \left(0.5 + \left(t \cdot t\right) \cdot 0.25\right) - \sqrt{2} \cdot \left(y + 0.5 \cdot \left(y \cdot \left(t \cdot t\right)\right)\right)\right)\]
Alternative 19
Error31.2
Cost20800
\[e^{\frac{t \cdot t}{2}} \cdot \frac{\sqrt{2} \cdot \left(\sqrt{z} \cdot \left(x \cdot \left(x \cdot 0.25\right) - y \cdot y\right)\right)}{x \cdot 0.5 + y}\]
Alternative 20
Error0.5
Cost20160
\[e^{\frac{t \cdot t}{2}} \cdot \left(\left(x \cdot 0.5 - y\right) \cdot \left(\sqrt{z} \cdot \sqrt{2}\right)\right)\]
Alternative 21
Error0.5
Cost20160
\[e^{\frac{t \cdot t}{2}} \cdot \left(\sqrt{2} \cdot \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z}\right)\right)\]
Alternative 22
Error31.6
Cost20032
\[e^{\frac{t \cdot t}{2}} \cdot \left(0.5 \cdot \left(\sqrt{z} \cdot \left(x \cdot \sqrt{2}\right)\right)\right)\]
Alternative 23
Error31.4
Cost19968
\[e^{\frac{t \cdot t}{2}} \cdot \left(-\sqrt{z} \cdot \left(y \cdot \sqrt{2}\right)\right)\]
Alternative 24
Error31.4
Cost19968
\[e^{\frac{t \cdot t}{2}} \cdot \left(-y \cdot \left(\sqrt{z} \cdot \sqrt{2}\right)\right)\]
Alternative 25
Error31.1
Cost14400
\[e^{\frac{t \cdot t}{2}} \cdot \frac{\sqrt{z \cdot 2} \cdot \left(x \cdot \left(x \cdot 0.25\right) - y \cdot y\right)}{x \cdot 0.5 + y}\]
Alternative 26
Error1.3
Cost13376
\[\sqrt{2} \cdot \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z}\right)\]
Alternative 27
Error61.7
Cost64
\[1\]
Alternative 28
Error61.5
Cost64
\[0\]
Alternative 29
Error61.8
Cost64
\[-1\]

Error

Derivation

  1. Initial program 0.3

    \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}}\]
  2. Simplified0.3

    \[\leadsto \color{blue}{\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}}}\]
  3. Final simplification0.3

    \[\leadsto \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}}\]

Reproduce

herbie shell --seed 2021042 
(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))))