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

Error

Bits error versus x

Derivation

  1. Initial program 58.5

    \[\frac{1}{2} \cdot \log \left(\frac{1 + x}{1 - x}\right)\]
  2. Applied simplify58.5

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

    \[\leadsto \frac{\color{blue}{\frac{2}{3} \cdot {x}^{3} + \left(\frac{2}{5} \cdot {x}^{5} + 2 \cdot x\right)}}{2}\]
  4. Removed slow pow expressions.

Runtime

Time bar (total: 42.7s)Debug logProfile

herbie shell --seed '#(1063185673 2139736501 2393378123 1907444849 1070993796 1007244912)' 
(FPCore (x)
  :name "Hyperbolic arc-(co)tangent"
  (* (/ 1 2) (log (/ (+ 1 x) (- 1 x)))))