Average Error: 0.0 → 0.0
Time: 15.6s
Precision: 64
Internal Precision: 128
\[\log \left(\frac{1}{x} + \frac{\sqrt{1 - x \cdot x}}{x}\right)\]
\[\log \left(\sqrt{\frac{1}{x} + \frac{\sqrt{1 - x \cdot x}}{x}}\right) + \log \left(\sqrt{\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. Using strategy rm
  3. Applied add-sqr-sqrt0.0

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

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

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

Reproduce

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

Details

Time bar (total: 15.3s)Debug log

sample215.0ms

Algorithm
intervals

simplify11.0ms

Counts
1 → 1
Calls

1 calls. Slowest were:

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

prune10.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0.0b

localize50.0ms

Local error

Found 4 expressions with local error:

0.0b
(sqrt (- 1 (* x x)))
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)))

rewrite13.0ms

Algorithm
rewrite-expression-head
Counts
4 → 69
Calls

4 calls. Slowest were:

5.0ms
(+ (/ 1 x) (/ (sqrt (- 1 (* x x))) x))
4.0ms
(log (+ (/ 1 x) (/ (sqrt (- 1 (* x x))) x)))
3.0ms
(/ (sqrt (- 1 (* x x))) x)

series222.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

108.0ms
(log (+ (/ 1 x) (/ (sqrt (- 1 (* x x))) x)))
54.0ms
(/ (sqrt (- 1 (* x x))) x)
38.0ms
(+ (/ 1 x) (/ (sqrt (- 1 (* x x))) x))
22.0ms
(sqrt (- 1 (* x x)))

simplify4.0s

Counts
47 → 81
Calls

47 calls. Slowest were:

583.0ms
(- (* 1/8 (/ 1 (* (pow x 4) (pow (sqrt -1) 3)))) (+ (* 1/2 (/ 1 (* (pow x 2) (sqrt -1)))) (sqrt -1)))
528.0ms
(- (+ (* 1/2 (/ 1 (* (pow x 2) (sqrt -1)))) (sqrt -1)) (* 1/8 (/ 1 (* (pow x 4) (pow (sqrt -1) 3)))))
344.0ms
(- (log 2) (+ (* 1/4 (pow x 2)) (+ (* 3/32 (pow x 4)) (log x))))

prune714.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0b

localize10.0ms

Local error

Found 4 expressions with local error:

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

rewrite15.0ms

Algorithm
rewrite-expression-head
Counts
4 → 68
Calls

4 calls. Slowest were:

7.0ms
(sqrt (+ (/ 1 x) (/ (sqrt (- 1 (* x x))) x)))
6.0ms
(sqrt (+ (/ 1 x) (/ (sqrt (- 1 (* x x))) x)))
1.0ms
(sqrt (- 1 (* x x)))

series207.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

79.0ms
(sqrt (+ (/ 1 x) (/ (sqrt (- 1 (* x x))) x)))
61.0ms
(sqrt (+ (/ 1 x) (/ (sqrt (- 1 (* x x))) x)))
36.0ms
(sqrt (- 1 (* x x)))
31.0ms
(sqrt (- 1 (* x x)))

simplify3.3s

Counts
48 → 80
Calls

48 calls. Slowest were:

339.0ms
(sqrt (- (* (/ 1 x) (/ 1 x)) (* (/ (sqrt (- 1 (* x x))) x) (/ (sqrt (- 1 (* x x))) x))))
271.0ms
(sqrt (- (* (/ 1 x) (/ 1 x)) (* (/ (sqrt (- 1 (* x x))) x) (/ (sqrt (- 1 (* x x))) x))))
248.0ms
(+ (* 1/8 (* (/ 1 (pow x 2)) (sqrt (/ 1 (pow (sqrt -1) 3))))) (+ (sqrt (sqrt -1)) (* 1/2 (* (/ 1 x) (sqrt (/ 1 (sqrt -1)))))))

prune1.4s

Pruning

1 alts after pruning (0 fresh and 1 done)

Merged error: 0b

end0.0ms

sample5.1s

Algorithm
intervals