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

    \[\leadsto -\log \left(\frac{1}{x} - 1\right)\]
  3. Final simplification0.0

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

Reproduce

herbie shell --seed 2018365 
(FPCore (x)
  :name "neg log"
  (- (log (- (/ 1 x) 1))))

Details

Time bar (total: 6.2s)Debug log

start521.0ms

Algorithm
intervals

setup78.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0.0b

localize49.0ms

Local error

Found 1 expressions with local error:

0.0b
(log (- (/ 1 x) 1))

rewrite10.0ms

Algorithm
rewrite-expression-head
Counts
1 → 15
Calls

1 calls. Slowest were:

7.0ms
(log (- (/ 1 x) 1))

series70.0ms

Counts
1 → 3
Calls

1 calls. Slowest were:

70.0ms
(log (- (/ 1 x) 1))

simplify408.0ms

Counts
10 → 18
Calls

10 calls. Slowest were:

96.0ms
(- (+ x (+ (* 1/2 (pow x 2)) (log x))))
95.0ms
(- (log -1) (+ (/ 1 x) (* 1/2 (/ 1 (pow x 2)))))
68.0ms
(- (log -1) (+ (/ 1 x) (* 1/2 (/ 1 (pow x 2)))))

prune137.0ms

Pruning

2 alts after pruning (1 fresh and 1 done)

Merged error: 0b

localize18.0ms

Local error

Found 4 expressions with local error:

0.6b
(cbrt (- (/ 1 x) 1))
0.6b
(cbrt (- (/ 1 x) 1))
0.6b
(cbrt (- (/ 1 x) 1))
0.5b
(* (cbrt (- (/ 1 x) 1)) (cbrt (- (/ 1 x) 1)))

rewrite28.0ms

Algorithm
rewrite-expression-head
Counts
4 → 80
Calls

4 calls. Slowest were:

20.0ms
(* (cbrt (- (/ 1 x) 1)) (cbrt (- (/ 1 x) 1)))
3.0ms
(cbrt (- (/ 1 x) 1))
2.0ms
(cbrt (- (/ 1 x) 1))

series260.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

75.0ms
(cbrt (- (/ 1 x) 1))
65.0ms
(* (cbrt (- (/ 1 x) 1)) (cbrt (- (/ 1 x) 1)))
63.0ms
(cbrt (- (/ 1 x) 1))
58.0ms
(cbrt (- (/ 1 x) 1))

simplify2.9s

Counts
64 → 92
Calls

64 calls. Slowest were:

230.0ms
(- (pow -1 1/3) (+ (* 1/3 (* (/ 1 x) (pow -1 1/3))) (* 1/9 (* (/ 1 (pow x 2)) (pow -1 1/3)))))
228.0ms
(- (pow -1 1/3) (+ (* 1/3 (* (/ 1 x) (pow -1 1/3))) (* 1/9 (* (/ 1 (pow x 2)) (pow -1 1/3)))))
222.0ms
(- (cbrt -1) (+ (* 1/3 (/ (cbrt -1) x)) (* 1/9 (/ (cbrt -1) (pow x 2)))))

prune1.5s

Pruning

2 alts after pruning (0 fresh and 2 done)

Merged error: 0b

regimes186.0ms

Accuracy

0% (0.0b remaining)

Error of 0.0b against oracle of 0.0b and baseline of 0.0b

bsearch1.0ms