Average Error: 58.3 → 0.0
Time: 4.5s
Precision: binary64
\[\]
\[\]

Error

Bits error versus x

Derivation

  1. Initial program 58.3

    \[\]
  2. Using strategy rm
  3. Applied tanh-undef0.0

    \[\leadsto \]
  4. Final simplification0.0

    \[\leadsto \]

Reproduce

herbie shell --seed 2020191 
(FPCore (x)
  :name "Hyperbolic tangent"
  :precision binary64
  (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))))