Average Error: 0.0 → 0.0
Time: 19.9s
Precision: 64
Internal Precision: 576
\[\log \left(\frac{1}{x} + \frac{\sqrt{1 - x \cdot x}}{x}\right)\]
\[\log \left((\left(\sqrt{\frac{1}{x}}\right) \cdot \left(\sqrt{\frac{1}{x}}\right) + \left(\frac{\sqrt{1 - x \cdot x}}{x}\right))_*\right)\]

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. Initial simplification0.0

    \[\leadsto \log \left(\frac{1}{x} + \frac{\sqrt{1 - x \cdot x}}{x}\right)\]
  3. Using strategy rm
  4. Applied add-sqr-sqrt0.0

    \[\leadsto \log \left(\color{blue}{\sqrt{\frac{1}{x}} \cdot \sqrt{\frac{1}{x}}} + \frac{\sqrt{1 - x \cdot x}}{x}\right)\]
  5. Applied fma-def0.0

    \[\leadsto \log \color{blue}{\left((\left(\sqrt{\frac{1}{x}}\right) \cdot \left(\sqrt{\frac{1}{x}}\right) + \left(\frac{\sqrt{1 - x \cdot x}}{x}\right))_*\right)}\]
  6. Final simplification0.0

    \[\leadsto \log \left((\left(\sqrt{\frac{1}{x}}\right) \cdot \left(\sqrt{\frac{1}{x}}\right) + \left(\frac{\sqrt{1 - x \cdot x}}{x}\right))_*\right)\]

Runtime

Time bar (total: 19.9s)Debug logProfile

BaselineHerbieOracleSpan%
Regimes0.00.00.00.00%
herbie shell --seed 2018295 +o rules:numerics
(FPCore (x)
  :name "Hyperbolic arc-(co)secant"
  (log (+ (/ 1 x) (/ (sqrt (- 1 (* x x))) x))))