Average Error: 31.0 → 0.2
Time: 54.0s
Precision: 64
Internal Precision: 2432
\[\log \left(x + \sqrt{x \cdot x - 1}\right)\]
\[\log \left(\left(\left(x + x\right) - \frac{\frac{1}{2}}{x}\right) - \frac{\frac{\frac{1}{8}}{x}}{x \cdot x}\right)\]

Error

Bits error versus x

Derivation

  1. Initial program 31.0

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

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

    \[\leadsto \color{blue}{\log \left(\left(\left(x + x\right) - \frac{\frac{1}{2}}{x}\right) - \frac{\frac{\frac{1}{8}}{x}}{x \cdot x}\right)}\]
  4. Removed slow pow expressions.

Runtime

Time bar (total: 54.0s)Debug logProfile

herbie shell --seed '#(1063154770 1824007522 645063331 41291047 494775821 1237684644)' 
(FPCore (x)
  :name "Hyperbolic arc-cosine"
  (log (+ x (sqrt (- (* x x) 1)))))