Average Error: 14.0 → 14.0
Time: 10.7s
Precision: binary64
\[\]
\[\]

Error

Bits error versus x

Derivation

  1. Initial program 14.0

    \[\]
  2. Simplified14.0

    \[\leadsto \]
  3. Using strategy rm
  4. Applied add-log-exp14.0

    \[\leadsto \]
  5. Applied add-log-exp14.0

    \[\leadsto \]
  6. Applied diff-log14.8

    \[\leadsto \]
  7. Simplified14.0

    \[\leadsto \]
  8. Final simplification14.0

    \[\leadsto \]

Reproduce

herbie shell --seed 2020191 
(FPCore (x)
  :name "Jmat.Real.erf"
  :precision binary64
  (- 1.0 (* (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ 0.254829592 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ -0.284496736 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ 1.421413741 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ -1.453152027 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) 1.061405429))))))))) (exp (neg (* (fabs x) (fabs x)))))))