Average Error: 0.0 → 0.0
Time: 10.1s
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. Final simplification0.0

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

Reproduce

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

Details

Time bar (total: 9.8s)Debug log

sample200.0ms

Algorithm
intervals

simplify22.0ms

Counts
1 → 1
Calls

1 calls. Slowest were:

21.0ms
(log (+ (/ 1 x) (/ (sqrt (- 1 (* x x))) x)))

prune10.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0b

localize37.0ms

Local error

Found 3 expressions with local error:

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

rewrite23.0ms

Algorithm
rewrite-expression-head
Counts
3 → 65
Calls

3 calls. Slowest were:

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

series611.0ms

Counts
3 → 9
Calls

3 calls. Slowest were:

425.0ms
(+ (/ 1 x) (/ (sqrt (- 1 (* x x))) x))
139.0ms
(log (+ (/ 1 x) (/ (sqrt (- 1 (* x x))) x)))
46.0ms
(/ (sqrt (- 1 (* x x))) x)

simplify3.2s

Counts
40 → 74
Calls

40 calls. Slowest were:

484.0ms
(- (log 2) (+ (* 1/4 (pow x 2)) (+ (* 3/32 (pow x 4)) (log x))))
375.0ms
(- (+ (log (sqrt -1)) (/ 1 (* x (sqrt -1)))) (* 1/6 (/ 1 (* (pow x 3) (pow (sqrt -1) 3)))))
347.0ms
(log (- (* (/ 1 x) (/ 1 x)) (* (/ (sqrt (- 1 (* x x))) x) (/ (sqrt (- 1 (* x x))) x))))

prune648.0ms

Pruning

1 alts after pruning (0 fresh and 1 done)

Merged error: 0b

end0.0ms

sample5.0s

Algorithm
intervals