Average Error: 30.5 → 0.4
Time: 37.1s
Precision: 64
Internal Precision: 2368
\[\log \left(x + \sqrt{x \cdot x - 1}\right)\]
\[\left(\left(\log 2 + \log x\right) - \frac{\frac{1}{4}}{x \cdot x}\right) - \frac{\frac{3}{32}}{{x}^{4}}\]

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 30.5

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

    \[\leadsto \color{blue}{\log 2 - \left(\log \left(\frac{1}{x}\right) + \left(\frac{3}{32} \cdot \frac{1}{{x}^{4}} + \frac{1}{4} \cdot \frac{1}{{x}^{2}}\right)\right)}\]
  3. Simplified0.4

    \[\leadsto \color{blue}{\left(\left(\log 2 + \log x\right) - \frac{\frac{1}{4}}{x \cdot x}\right) - \frac{\frac{3}{32}}{{x}^{4}}}\]
  4. Final simplification0.4

    \[\leadsto \left(\left(\log 2 + \log x\right) - \frac{\frac{1}{4}}{x \cdot x}\right) - \frac{\frac{3}{32}}{{x}^{4}}\]

Runtime

Time bar (total: 37.1s)Debug logProfile

herbie shell --seed 2018216 
(FPCore (x)
  :name "Hyperbolic arc-cosine"
  (log (+ x (sqrt (- (* x x) 1)))))