Average Error: 0.0 → 0.0
Time: 54.2s
Precision: 64
Internal Precision: 384
\[\log \left(\frac{1}{x} + \frac{\sqrt{1 - x \cdot x}}{x}\right)\]
\[\log_* (1 + (e^{\log \left(\frac{1}{x} + \frac{\sqrt{1 - x \cdot x}}{x}\right)} - 1)^*)\]

Error

Bits error versus x

Derivation

  1. Initial program 0.0

    \[\log \left(\frac{1}{x} + \frac{\sqrt{1 - x \cdot x}}{x}\right)\]
  2. Using strategy rm
  3. Applied log1p-expm1-u0.0

    \[\leadsto \color{blue}{\log_* (1 + (e^{\log \left(\frac{1}{x} + \frac{\sqrt{1 - x \cdot x}}{x}\right)} - 1)^*)}\]

Runtime

Time bar (total: 54.2s)Debug logProfile

herbie shell --seed '#(1070833653 108281690 3330367898 3632331308 3494323072 43156186)' +o rules:numerics
(FPCore (x)
  :name "Hyperbolic arc-(co)secant"
  (log (+ (/ 1 x) (/ (sqrt (- 1 (* x x))) x))))