Details

Time bar (total: 4.8s)

sample36.0ms

Algorithm
intervals
Results
9.0ms56×body1280valid
7.0ms250×body80nan
5.0ms44×body640valid
4.0ms131×body80valid
2.0ms17×body320valid
0.0msbody160valid

simplify5.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
094
1104
2104

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 29.7b

localize5.0ms

Local error

Found 1 expressions with local error:

2.4b
(- (sqrt (+ x 1.0)) (sqrt x))

rewrite25.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
*-un-lft-identity sqrt-prod
difference-of-squares
distribute-lft-out-- add-log-exp
pow1 add-exp-log add-cube-cbrt sub-neg flip3-- diff-log add-cbrt-cube flip-- distribute-lft-out
Counts
1 → 19
Calls
1 calls:
24.0ms
(- (sqrt (+ x 1.0)) (sqrt x))

series66.0ms

Counts
1 → 3
Calls
1 calls:
66.0ms
(- (sqrt (+ x 1.0)) (sqrt x))

simplify48.0ms

Algorithm
egg-herbie
Counts
22 → 22
Iterations

Useful iterations: 3 (44.0ms)

IterNodesCost
0132175
1400159
21559153
35001149

prune44.0ms

Pruning

3 alts after pruning (2 fresh and 1 done)

Merged error: 0.2b

localize6.0ms

Local error

Found 2 expressions with local error:

0.0b
(+ (sqrt (+ x 1.0)) (sqrt x))
0.2b
(/ 1.0 (+ (sqrt (+ x 1.0)) (sqrt x)))

rewrite45.0ms

Algorithm
rewrite-expression-head
Rules
48×*-un-lft-identity
20×sqrt-prod distribute-lft-out
18×times-frac
13×add-sqr-sqrt add-cube-cbrt
associate-/r*
add-exp-log add-cbrt-cube add-log-exp
associate-/l*
pow1 flip3-+ associate-/r/ flip-+
cbrt-undiv +-commutative frac-2neg div-exp clear-num sum-log div-inv
Counts
2 → 55
Calls
2 calls:
16.0ms
(+ (sqrt (+ x 1.0)) (sqrt x))
26.0ms
(/ 1.0 (+ (sqrt (+ x 1.0)) (sqrt x)))

series203.0ms

Counts
2 → 6
Calls
2 calls:
62.0ms
(+ (sqrt (+ x 1.0)) (sqrt x))
141.0ms
(/ 1.0 (+ (sqrt (+ x 1.0)) (sqrt x)))

simplify38.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 2 (32.0ms)

IterNodesCost
0295535
11077482
25001453

prune127.0ms

Pruning

10 alts after pruning (9 fresh and 1 done)

Merged error: 0.0b

localize9.0ms

Local error

Found 4 expressions with local error:

0.1b
(sqrt (/ 1.0 (+ (sqrt (+ x 1.0)) (sqrt x))))
0.2b
(/ 1.0 (+ (sqrt (+ x 1.0)) (sqrt x)))
0.2b
(/ 1.0 (+ (sqrt (+ x 1.0)) (sqrt x)))
0.2b
(* (sqrt (/ 1.0 (+ (sqrt (+ x 1.0)) (sqrt x)))) (sqrt (/ 1.0 (+ (sqrt (+ x 1.0)) (sqrt x)))))

rewrite211.0ms

Algorithm
rewrite-expression-head
Rules
297×*-un-lft-identity
274×sqrt-prod
157×times-frac
119×add-sqr-sqrt
116×distribute-lft-out
88×add-cube-cbrt
41×swap-sqr
27×associate-*r* associate-*l*
20×pow1
14×associate-/r/
12×associate-/r*
10×add-exp-log add-cbrt-cube
sqrt-pow1 pow1/2 unswap-sqr
flip3-+ flip-+ div-inv
associate-/l*
sqrt-div pow-prod-up
add-log-exp
pow-prod-down pow-sqr
cbrt-undiv rem-sqrt-square frac-2neg div-exp clear-num
pow2 frac-times pow-plus sqrt-unprod associate-*r/ associate-*l/ prod-exp rem-square-sqrt *-commutative cbrt-unprod
Counts
4 → 250
Calls
4 calls:
25.0ms
(sqrt (/ 1.0 (+ (sqrt (+ x 1.0)) (sqrt x))))
25.0ms
(/ 1.0 (+ (sqrt (+ x 1.0)) (sqrt x)))
23.0ms
(/ 1.0 (+ (sqrt (+ x 1.0)) (sqrt x)))
122.0ms
(* (sqrt (/ 1.0 (+ (sqrt (+ x 1.0)) (sqrt x)))) (sqrt (/ 1.0 (+ (sqrt (+ x 1.0)) (sqrt x)))))

series797.0ms

Counts
4 → 12
Calls
4 calls:
344.0ms
(sqrt (/ 1.0 (+ (sqrt (+ x 1.0)) (sqrt x))))
142.0ms
(/ 1.0 (+ (sqrt (+ x 1.0)) (sqrt x)))
143.0ms
(/ 1.0 (+ (sqrt (+ x 1.0)) (sqrt x)))
167.0ms
(* (sqrt (/ 1.0 (+ (sqrt (+ x 1.0)) (sqrt x)))) (sqrt (/ 1.0 (+ (sqrt (+ x 1.0)) (sqrt x)))))

simplify103.0ms

Algorithm
egg-herbie
Counts
262 → 262
Iterations

Useful iterations: 2 (77.0ms)

IterNodesCost
06472845
131522529
250022489

prune506.0ms

Pruning

10 alts after pruning (8 fresh and 2 done)

Merged error: 0.0b

localize11.0ms

Local error

Found 4 expressions with local error:

0.1b
(sqrt (+ (sqrt (+ x 1.0)) (sqrt x)))
0.1b
(sqrt (/ 1.0 (+ (sqrt (+ x 1.0)) (sqrt x))))
0.2b
(/ 1.0 (+ (sqrt (+ x 1.0)) (sqrt x)))
0.2b
(/ (* (sqrt (/ 1.0 (+ (sqrt (+ x 1.0)) (sqrt x)))) (sqrt 1.0)) (sqrt (+ (sqrt (+ x 1.0)) (sqrt x))))

rewrite118.0ms

Algorithm
rewrite-expression-head
Rules
100×*-un-lft-identity
82×sqrt-prod
46×times-frac
40×distribute-lft-out
34×add-sqr-sqrt
30×add-cube-cbrt
15×associate-/r*
11×add-exp-log add-cbrt-cube
pow1 sqrt-div associate-/r/
flip3-+ flip-+ associate-/l* add-log-exp
cbrt-undiv rem-sqrt-square div-exp div-inv
frac-2neg sqrt-pow1 pow1/2 clear-num
sqrt-undiv sqrt-unprod associate-*l/ prod-exp cbrt-unprod associate-/l/
Counts
4 → 132
Calls
4 calls:
21.0ms
(sqrt (+ (sqrt (+ x 1.0)) (sqrt x)))
25.0ms
(sqrt (/ 1.0 (+ (sqrt (+ x 1.0)) (sqrt x))))
25.0ms
(/ 1.0 (+ (sqrt (+ x 1.0)) (sqrt x)))
41.0ms
(/ (* (sqrt (/ 1.0 (+ (sqrt (+ x 1.0)) (sqrt x)))) (sqrt 1.0)) (sqrt (+ (sqrt (+ x 1.0)) (sqrt x))))

series813.0ms

Counts
4 → 12
Calls
4 calls:
158.0ms
(sqrt (+ (sqrt (+ x 1.0)) (sqrt x)))
344.0ms
(sqrt (/ 1.0 (+ (sqrt (+ x 1.0)) (sqrt x))))
142.0ms
(/ 1.0 (+ (sqrt (+ x 1.0)) (sqrt x)))
169.0ms
(/ (* (sqrt (/ 1.0 (+ (sqrt (+ x 1.0)) (sqrt x)))) (sqrt 1.0)) (sqrt (+ (sqrt (+ x 1.0)) (sqrt x))))

simplify81.0ms

Algorithm
egg-herbie
Counts
144 → 144
Iterations

Useful iterations: 2 (60.0ms)

IterNodesCost
06931805
129631644
250021576

prune355.0ms

Pruning

10 alts after pruning (8 fresh and 2 done)

Merged error: 0.0b

regimes43.0ms

Accuracy

0% (0.1b remaining)

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

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
095
195

end0.0ms

sample1.1s

Algorithm
intervals
Results
286.0ms1815×body1280valid
229.0ms7795×body80nan
154.0ms1227×body640valid
135.0ms4049×body80valid
59.0ms615×body320valid
17.0ms294×body160valid