Average Error: 0.3 → 0.3
Time: 8.0s
Precision: binary64
\[\]
\[\]
double code(double x, double y, double z, double t) {
	return ((double) (((double) (((double) (((double) (x * 0.5)) - y)) * ((double) sqrt(((double) (z * 2.0)))))) * ((double) exp(((double) (((double) (t * t)) / 2.0))))));
}
double code(double x, double y, double z, double t) {
	return ((double) (((double) (((double) (x * 0.5)) - y)) * ((double) (((double) (((double) sqrt(((double) (z * 2.0)))) * ((double) pow(((double) exp(((double) (t / 2.0)))), ((double) (t * 0.5)))))) * ((double) pow(((double) exp(((double) (t / 2.0)))), ((double) (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
\[\]

Derivation

  1. Initial program 0.3

    \[\]
  2. Simplified0.3

    \[\leadsto \]
  3. Using strategy rm
  4. Applied sqr-pow0.3

    \[\leadsto \]
  5. Applied associate-*r*0.3

    \[\leadsto \]
  6. Simplified0.3

    \[\leadsto \]
  7. Final simplification0.3

    \[\leadsto \]

Reproduce

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