Average Error: 58.5 → 0.2
Time: 25.8s
Precision: 64
Internal Precision: 1408
\[\frac{1}{2} \cdot \log \left(\frac{1 + x}{1 - x}\right)\]
\[\frac{{x}^{5} \cdot \frac{2}{5}}{2} + \left(x + \frac{\frac{2}{3}}{2} \cdot {x}^{3}\right)\]

Error

Bits error versus x

Derivation

  1. Initial program 58.5

    \[\frac{1}{2} \cdot \log \left(\frac{1 + x}{1 - x}\right)\]
  2. Taylor expanded around 0 0.2

    \[\leadsto \frac{1}{2} \cdot \color{blue}{\left(\frac{2}{3} \cdot {x}^{3} + \left(\frac{2}{5} \cdot {x}^{5} + 2 \cdot x\right)\right)}\]
  3. Applied simplify0.2

    \[\leadsto \color{blue}{\frac{{x}^{5} \cdot \frac{2}{5}}{2} + \left(x + \frac{\frac{2}{3}}{2} \cdot {x}^{3}\right)}\]

Runtime

Time bar (total: 25.8s)Debug logProfile

herbie shell --seed '#(1070355188 2193211668 3977393919 3454156579 3755371326 1656365382)' 
(FPCore (x)
  :name "Hyperbolic arc-(co)tangent"
  (* (/ 1 2) (log (/ (+ 1 x) (- 1 x)))))