Average Error: 30.1 → 0.6
Time: 4.4s
Precision: binary64
\[\]
\[\]

Error

Bits error versus x

Target

Original30.1
Target0.0
Herbie0.6
\[\]

Derivation

  1. Initial program 30.1

    \[\]
  2. Taylor expanded around 0 0.6

    \[\leadsto \]
  3. Simplified0.6

    \[\leadsto \]
  4. Using strategy rm
  5. Applied add-sqr-sqrt0.6

    \[\leadsto \]
  6. Simplified0.6

    \[\leadsto \]
  7. Simplified0.6

    \[\leadsto \]
  8. Final simplification0.6

    \[\leadsto \]

Reproduce

herbie shell --seed 2020179 
(FPCore (x)
  :name "exp2 (problem 3.3.7)"
  :precision binary64

  :herbie-target
  (* 4.0 (pow (sinh (/ x 2.0)) 2.0))

  (+ (- (exp x) 2.0) (exp (neg x))))