Average Error: 0.0 → 0.0
Time: 12.2s
Precision: 64
Internal Precision: 128
\[\log \left(\frac{1}{x} + \frac{\sqrt{1 - x \cdot x}}{x}\right)\]
\[\log \left(\frac{1}{x} + \frac{\sqrt{1 - x \cdot x}}{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 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. Final simplification0.0

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

Runtime

Time bar (total: 12.2s)Debug logProfile

start331.0ms

Algorithm
intervals

setup46.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0b

localize30.0ms

Local error

Found 1 expressions with local error:

0.0b
(+ (/ 1 x) (/ (sqrt (- 1 (* x x))) x))

rewrite9.0ms

Algorithm
rewrite-expression-head
Counts
1 → 17
Calls

1 calls. Slowest were:

9.0ms
(+ (/ 1 x) (/ (sqrt (- 1 (* x x))) x))

series45.0ms

Counts
1 → 3
Calls

1 calls. Slowest were:

45.0ms
(+ (/ 1 x) (/ (sqrt (- 1 (* x x))) x))

simplify645.0ms

Counts
13 → 20
Calls

13 calls. Slowest were:

306.0ms
(- (/ 1 x) (+ (* 1/2 (/ 1 (* (pow x 2) (sqrt -1)))) (sqrt -1)))
120.0ms
(- (* 2 (/ 1 x)) (+ (* 1/2 x) (* 1/8 (pow x 3))))
118.0ms
(+ (* 1/2 (/ 1 (* (pow x 2) (sqrt -1)))) (+ (sqrt -1) (/ 1 x)))

prune135.0ms

Pruning

1 alts after pruning (0 fresh and 1 done)

Merged error: 0b

herbie shell --seed 2018357 
(FPCore (x)
  :name "Hyperbolic arc-(co)secant"
  (log (+ (/ 1 x) (/ (sqrt (- 1 (* x x))) x))))