Average Error: 39.5 → 0.0
Time: 15.5s
Precision: 64
Internal Precision: 128
\[\sqrt{\frac{e^{2 \cdot x} - 1}{e^{x} - 1}}\]
\[\sqrt{e^{x} + 1}\]

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 39.5

    \[\sqrt{\frac{e^{2 \cdot x} - 1}{e^{x} - 1}}\]
  2. Initial simplification0.0

    \[\leadsto \sqrt{e^{x} + 1}\]
  3. Final simplification0.0

    \[\leadsto \sqrt{e^{x} + 1}\]

Reproduce

herbie shell --seed 2018362 
(FPCore (x)
  :name "sqrtexp (problem 3.4.4)"
  (sqrt (/ (- (exp (* 2 x)) 1) (- (exp x) 1))))

Details

Time bar (total: 5.4s)Debug log

start806.0ms

Algorithm
intervals

setup424.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0.0b

localize11.0ms

Local error

Found 2 expressions with local error:

0.0b
(sqrt (+ (exp x) 1))
0.0b
(+ (exp x) 1)

rewrite8.0ms

Algorithm
rewrite-expression-head
Counts
2 → 24
Calls

2 calls. Slowest were:

4.0ms
(sqrt (+ (exp x) 1))
2.0ms
(+ (exp x) 1)

series48.0ms

Counts
2 → 6
Calls

2 calls. Slowest were:

39.0ms
(sqrt (+ (exp x) 1))
8.0ms
(+ (exp x) 1)

simplify309.0ms

Counts
12 → 30
Calls

12 calls. Slowest were:

205.0ms
(- (+ (sqrt 2) (+ (* 1/4 (/ (pow x 2) (sqrt 2))) (* 1/2 (/ x (sqrt 2))))) (* 1/8 (/ (pow x 2) (pow (sqrt 2) 3))))
39.0ms
(+ x (+ (* 1/2 (pow x 2)) 2))
31.0ms
(sqrt (- (* (exp x) (exp x)) (* 1 1)))

prune275.0ms

Pruning

2 alts after pruning (1 fresh and 1 done)

Merged error: 0b

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(cbrt (sqrt (+ (exp x) 1)))
0.0b
(cbrt (sqrt (+ (exp x) 1)))
0.0b
(cbrt (sqrt (+ (exp x) 1)))
0.0b
(* (cbrt (sqrt (+ (exp x) 1))) (cbrt (sqrt (+ (exp x) 1))))

rewrite22.0ms

Algorithm
rewrite-expression-head
Counts
4 → 90
Calls

4 calls. Slowest were:

15.0ms
(* (cbrt (sqrt (+ (exp x) 1))) (cbrt (sqrt (+ (exp x) 1))))
2.0ms
(cbrt (sqrt (+ (exp x) 1)))
2.0ms
(cbrt (sqrt (+ (exp x) 1)))

series591.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

170.0ms
(* (cbrt (sqrt (+ (exp x) 1))) (cbrt (sqrt (+ (exp x) 1))))
169.0ms
(cbrt (sqrt (+ (exp x) 1)))
134.0ms
(cbrt (sqrt (+ (exp x) 1)))
119.0ms
(cbrt (sqrt (+ (exp x) 1)))

simplify1.7s

Counts
74 → 102
Calls

74 calls. Slowest were:

209.0ms
(+ (* 1/12 (* x (pow 2 1/6))) (+ (pow 2 1/6) (* 7/288 (* (pow x 2) (pow 2 1/6)))))
182.0ms
(+ (* 1/18 (* (pow x 2) (pow 2 1/3))) (+ (* 1/6 (* x (pow 2 1/3))) (pow 2 1/3)))
160.0ms
(+ (* 1/12 (* x (pow 2 1/6))) (+ (pow 2 1/6) (* 7/288 (* (pow x 2) (pow 2 1/6)))))

prune1.2s

Pruning

2 alts after pruning (0 fresh and 2 done)

Merged error: 0b

regimes20.0ms

Accuracy

0% (0.0b remaining)

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

bsearch1.0ms