Average Error: 46.3 → 20.9
Time: 53.6s
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 46.3

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

    \[\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 simplify20.9

    \[\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: 53.6s)Debug log

herbie shell --seed '#(1567391828 2030694642 2833800258 828025724 3004380912 3532991858)' +o setup:early-exit +o reduce:binary-search
(FPCore (x)
  :name "Hyperbolic arc-cosine"
  (log (+ x (sqrt (- (* x x) 1)))))