Details

Time bar (total: 4.9s)

sample56.0ms

Algorithm
intervals
Results
14.0ms69×body1280valid
11.0ms276×body80nan
5.0ms33×body640valid
5.0ms121×body80valid
3.0ms27×body320valid
0.0msbody160valid

simplify7.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (5.0ms)

IterNodesCost
0717
1717

prune4.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 32.1b

Counts
2 → 1

localize8.0ms

Local error

Found 2 expressions with local error:

0.0b
(sqrt (+ x 1.0))
2.0b
(- (sqrt (+ x 1.0)) (sqrt x))

rewrite19.0ms

Algorithm
rewrite-expression-head
Rules
12×add-sqr-sqrt *-un-lft-identity sqrt-prod
add-log-exp difference-of-squares
pow1 add-cube-cbrt distribute-lft-out--
add-exp-log sqrt-div add-cbrt-cube distribute-lft-out
sub-neg rem-sqrt-square flip3-- sqrt-pow1 flip3-+ pow1/2 diff-log flip-- flip-+
Counts
2 → 35
Calls
2 calls:
5.0ms
(sqrt (+ x 1.0))
12.0ms
(- (sqrt (+ x 1.0)) (sqrt x))

series21.0ms

Counts
2 → 6
Calls
2 calls:
5.0ms
(sqrt (+ x 1.0))
16.0ms
(- (sqrt (+ x 1.0)) (sqrt x))

simplify66.0ms

Algorithm
egg-herbie
Counts
41 → 41
Iterations

Useful iterations: 0 (58.0ms)

IterNodesCost
04975523
14975523

prune142.0ms

Filtered
30 candidates to 41 candidates (-36.7%)
Pruning

4 alts after pruning (4 fresh and 0 done)

PrunedKeptTotal
New37441
Fresh000
Picked101
Done000
Total38442

Merged error: 0.1b

Counts
42 → 4

localize12.0ms

Local error

Found 3 expressions with local error:

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

rewrite44.0ms

Algorithm
rewrite-expression-head
Rules
52×*-un-lft-identity
24×sqrt-prod
21×distribute-lft-out
18×times-frac
16×add-sqr-sqrt
15×add-cube-cbrt
associate-/r*
add-exp-log add-cbrt-cube add-log-exp
pow1
flip3-+ flip-+ associate-/l*
sqrt-div associate-/r/
cbrt-undiv +-commutative rem-sqrt-square frac-2neg sqrt-pow1 pow1/2 div-exp clear-num sum-log div-inv
Counts
3 → 71
Calls
3 calls:
6.0ms
(sqrt (+ x 1.0))
15.0ms
(+ (sqrt (+ x 1.0)) (sqrt x))
18.0ms
(/ 1.0 (+ (sqrt (+ x 1.0)) (sqrt x)))

series31.0ms

Counts
3 → 9
Calls
3 calls:
6.0ms
(sqrt (+ x 1.0))
9.0ms
(+ (sqrt (+ x 1.0)) (sqrt x))
16.0ms
(/ 1.0 (+ (sqrt (+ x 1.0)) (sqrt x)))

simplify40.0ms

Algorithm
egg-herbie
Counts
80 → 80
Iterations

Useful iterations: 0 (28.0ms)

IterNodesCost
050381051

prune247.0ms

Filtered
59 candidates to 80 candidates (-35.6%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New73780
Fresh303
Picked011
Done000
Total76884

Merged error: 0.0b

Counts
84 → 8

localize15.0ms

Local error

Found 4 expressions with local error:

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

rewrite83.0ms

Algorithm
rewrite-expression-head
Rules
106×sqrt-prod
62×add-sqr-sqrt
46×*-un-lft-identity
40×sqrt-pow1
32×sqrt-div
31×pow1
28×add-cube-cbrt
20×pow1/2
18×swap-sqr
10×associate-*r* associate-*l*
flip3-+ times-frac pow-prod-up flip-+ unswap-sqr
add-exp-log add-cbrt-cube distribute-lft-out
pow-prod-down pow-sqr
frac-times rem-sqrt-square add-log-exp
associate-/r* associate-/l*
associate-*r/ associate-*l/ associate-/r/
cbrt-undiv pow2 frac-2neg pow-plus sqrt-unprod div-exp prod-exp clear-num rem-square-sqrt *-commutative cbrt-unprod div-inv
Counts
4 → 161
Calls
4 calls:
7.0ms
(sqrt (sqrt (+ 1.0 x)))
7.0ms
(sqrt (sqrt (+ 1.0 x)))
30.0ms
(/ 1.0 (+ (* (sqrt (sqrt (+ 1.0 x))) (sqrt (sqrt (+ 1.0 x)))) (sqrt x)))
26.0ms
(* (sqrt (sqrt (+ 1.0 x))) (sqrt (sqrt (+ 1.0 x))))

series42.0ms

Counts
4 → 12
Calls
4 calls:
10.0ms
(sqrt (sqrt (+ 1.0 x)))
10.0ms
(sqrt (sqrt (+ 1.0 x)))
16.0ms
(/ 1.0 (+ (* (sqrt (sqrt (+ 1.0 x))) (sqrt (sqrt (+ 1.0 x)))) (sqrt x)))
6.0ms
(* (sqrt (sqrt (+ 1.0 x))) (sqrt (sqrt (+ 1.0 x))))

simplify96.0ms

Algorithm
egg-herbie
Counts
173 → 173
Iterations

Useful iterations: 0 (70.0ms)

IterNodesCost
049411700
149411700

prune424.0ms

Filtered
91 candidates to 173 candidates (-90.1%)
Pruning

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New1730173
Fresh066
Picked011
Done011
Total1738181

Merged error: 0.0b

Counts
181 → 8

localize25.0ms

Local error

Found 4 expressions with local error:

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

rewrite185.0ms

Algorithm
rewrite-expression-head
Rules
742×*-un-lft-identity
700×sqrt-prod
594×times-frac
280×distribute-lft-out
254×add-sqr-sqrt
252×add-cube-cbrt
36×associate-/l*
28×sqrt-div
24×associate-/r/
18×associate-/r*
14×flip3-+ flip-+
12×div-inv
11×add-exp-log add-cbrt-cube
pow1
cbrt-undiv div-exp add-log-exp
rem-sqrt-square frac-2neg sqrt-pow1 pow1/2 clear-num
associate-/l/
Counts
4 → 445
Calls
4 calls:
14.0ms
(sqrt (+ (sqrt (+ x 1.0)) (sqrt x)))
14.0ms
(sqrt (+ (sqrt (+ 1.0 x)) (sqrt x)))
21.0ms
(/ 1.0 (sqrt (+ (sqrt (+ 1.0 x)) (sqrt x))))
57.0ms
(/ (/ 1.0 (sqrt (+ (sqrt (+ 1.0 x)) (sqrt x)))) (sqrt (+ (sqrt (+ x 1.0)) (sqrt x))))

series120.0ms

Counts
4 → 12
Calls
4 calls:
25.0ms
(sqrt (+ (sqrt (+ x 1.0)) (sqrt x)))
19.0ms
(sqrt (+ (sqrt (+ 1.0 x)) (sqrt x)))
36.0ms
(/ 1.0 (sqrt (+ (sqrt (+ 1.0 x)) (sqrt x))))
39.0ms
(/ (/ 1.0 (sqrt (+ (sqrt (+ 1.0 x)) (sqrt x)))) (sqrt (+ (sqrt (+ x 1.0)) (sqrt x))))

simplify215.0ms

Algorithm
egg-herbie
Counts
457 → 457
Iterations

Useful iterations: 0 (100.0ms)

IterNodesCost
0507311200

prune1.1s

Filtered
151 candidates to 457 candidates (-202.6%)
Pruning

8 alts after pruning (5 fresh and 3 done)

PrunedKeptTotal
New4552457
Fresh235
Picked011
Done022
Total4578465

Merged error: 0b

Counts
465 → 8

regimes111.0ms

Accuracy

0% (0.1b remaining)

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

bsearch0.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
099
199

end0.0ms

sample1.8s

Algorithm
intervals
Results
431.0ms1717×body1280valid
394.0ms8017×body80nan
246.0ms1261×body640valid
206.0ms4087×body80valid
96.0ms642×body320valid
28.0ms293×body160valid

Profiling

Loading profile data...