Average Error: 0.0 → 0.0
Time: 600.0ms
Precision: binary64
\[1 + \mathsf{erf}\left(a\right)\]
\[1 + \mathsf{erf}\left(a\right)\]
1 + \mathsf{erf}\left(a\right)
1 + \mathsf{erf}\left(a\right)
double code(double a) {
	return ((double) (1.0 + ((double) erf(a))));
}
double code(double a) {
	return ((double) (1.0 + ((double) erf(a))));
}

Error

Bits error versus a

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[1 + \mathsf{erf}\left(a\right)\]
  2. Final simplification0.0

    \[\leadsto 1 + \mathsf{erf}\left(a\right)\]

Reproduce

herbie shell --seed 2020153 
(FPCore (a)
  :name "(+ 1 (erf a))"
  :precision binary64
  (+ 1.0 (erf a)))