Average Error: 30.4 → 0.2
Time: 2.5m
Precision: 64
Internal Precision: 2368
\[\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

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 30.4

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

    \[\leadsto \log \left(x + \color{blue}{\left(x - \left(\frac{1}{8} \cdot \frac{1}{{x}^{3}} + \frac{1}{2} \cdot \frac{1}{x}\right)\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)}\]

Runtime

Time bar (total: 2.5m)Debug logProfile

herbie shell --seed 2018167 +o rules:numerics
(FPCore (x)
  :name "Hyperbolic arc-cosine"
  (log (+ x (sqrt (- (* x x) 1)))))