Details

Time bar (total: 19.3s)

sample2.8s

Algorithm
intervals
sampling

Space saved by range analysis: 0%

Space saved by search: 20.956421%

Guaranteed chance to sample good point: 57.924404%

Results
85.0ms39×body2560valid
73.0ms90×body1280valid
23.0ms50×body640valid
5.0ms22×body320valid
3.0msbody1280invalid
3.0ms47×body80valid
2.0msbody640invalid
2.0msbody2560invalid
2.0msbody320invalid
2.0msbody160valid
1.0msbody80invalid
0.0msbody160invalid
0.0msbody80nan

simplify46.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0257
1597
21417
33467
411717
550017

prune3.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 50.6b

Counts
2 → 1

localize9.0ms

Local error

Found 4 expressions with local error:

0.0b
(* 100.0 (/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n)))
1.5b
(- (pow (+ 1.0 (/ i n)) n) 1.0)
7.2b
(pow (+ 1.0 (/ i n)) n)
10.7b
(/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n))

rewrite82.0ms

Algorithm
rewrite-expression-head
Rules
320×times-frac
289×add-sqr-sqrt
198×*-un-lft-identity
140×add-cube-cbrt
96×associate-*r*
84×difference-of-squares
32×unpow-prod-down
29×sqr-pow
28×distribute-lft-out--
19×add-exp-log
18×add-cbrt-cube
17×div-inv
13×associate-/r*
pow1 associate-/l*
cbrt-undiv div-exp add-log-exp
pow-unpow associate-*l* prod-exp cbrt-unprod unswap-sqr
flip3-- associate-/r/ flip-- associate-/l/
pow-to-exp sub-neg pow-pow frac-2neg diff-log div-sub associate-*r/ pow-prod-down pow-exp clear-num *-commutative distribute-lft-out
Counts
4 → 281
Calls
4 calls:
33.0ms
(* 100.0 (/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n)))
9.0ms
(- (pow (+ 1.0 (/ i n)) n) 1.0)
7.0ms
(pow (+ 1.0 (/ i n)) n)
16.0ms
(/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n))

series188.0ms

Counts
4 → 12
Calls
4 calls:
63.0ms
(* 100.0 (/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n)))
35.0ms
(- (pow (+ 1.0 (/ i n)) n) 1.0)
26.0ms
(pow (+ 1.0 (/ i n)) n)
63.0ms
(/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n))

simplify66.0ms

Algorithm
egg-herbie
Counts
293 → 293
Iterations

Useful iterations: 1 (30.0ms)

IterNodesCost
012263285
150023166

prune605.0ms

Filtered
223 candidates to 293 candidates (-31.4%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New2876293
Fresh000
Picked101
Done000
Total2886294

Merged error: 23.8b

Counts
294 → 6

localize20.0ms

Local error

Found 4 expressions with local error:

0.0b
(* 0.5 (pow i 2))
0.1b
(* 100.0 (/ (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) (/ i n)))
11.1b
(* (pow i 2) (log 1.0))
19.8b
(/ (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) (/ i n))

rewrite52.0ms

Algorithm
rewrite-expression-head
Rules
144×times-frac
111×add-sqr-sqrt
90×add-cube-cbrt *-un-lft-identity
56×associate-*r*
28×add-exp-log
22×add-cbrt-cube
14×associate-*l*
13×associate-/r*
11×unswap-sqr
prod-exp div-inv
unpow-prod-down
pow1
cbrt-undiv log-prod div-exp
cbrt-unprod
unpow2 add-log-exp sqr-pow
distribute-rgt-in distribute-lft-in *-commutative associate-/l*
pow-to-exp pow-exp associate-/r/ associate-/l/
flip3-- frac-2neg div-sub associate-*r/ pow-prod-down clear-num log-pow flip--
Counts
4 → 200
Calls
4 calls:
6.0ms
(* 0.5 (pow i 2))
18.0ms
(* 100.0 (/ (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) (/ i n)))
6.0ms
(* (pow i 2) (log 1.0))
14.0ms
(/ (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) (/ i n))

series62.0ms

Counts
4 → 12
Calls
4 calls:
3.0ms
(* 0.5 (pow i 2))
21.0ms
(* 100.0 (/ (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) (/ i n)))
13.0ms
(* (pow i 2) (log 1.0))
25.0ms
(/ (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) (/ i n))

simplify151.0ms

Algorithm
egg-herbie
Counts
212 → 212
Iterations

Useful iterations: 1 (27.0ms)

IterNodesCost
09073537
148563275
250013275

prune925.0ms

Filtered
157 candidates to 212 candidates (-35.0%)
Pruning

17 alts after pruning (16 fresh and 1 done)

PrunedKeptTotal
New20111212
Fresh055
Picked011
Done000
Total20117218

Merged error: 12.7b

Counts
218 → 17

localize18.0ms

Local error

Found 4 expressions with local error:

0.1b
(* 100.0 (/ (/ (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) i) (/ 1 n)))
0.2b
(/ (/ (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) i) (/ 1 n))
10.6b
(/ (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) i)
11.1b
(* (pow i 2) (log 1.0))

rewrite117.0ms

Algorithm
rewrite-expression-head
Rules
846×times-frac
428×add-sqr-sqrt
399×*-un-lft-identity
397×add-cube-cbrt
178×associate-*r*
65×add-exp-log
57×div-inv
38×add-cbrt-cube
33×div-exp
17×cbrt-undiv
16×associate-/r* associate-/l*
12×prod-exp
11×associate-*l* unswap-sqr
pow1
log-prod cbrt-unprod
unpow-prod-down rec-exp 1-exp add-log-exp
distribute-rgt-in distribute-lft-in div-sub associate-/l/
frac-2neg clear-num associate-/r/ *-commutative unpow2 sqr-pow
pow-to-exp flip3-- associate-*r/ pow-prod-down pow-exp log-pow flip--
Counts
4 → 492
Calls
4 calls:
46.0ms
(* 100.0 (/ (/ (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) i) (/ 1 n)))
18.0ms
(/ (/ (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) i) (/ 1 n))
11.0ms
(/ (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) i)
6.0ms
(* (pow i 2) (log 1.0))

series74.0ms

Counts
4 → 12
Calls
4 calls:
27.0ms
(* 100.0 (/ (/ (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) i) (/ 1 n)))
19.0ms
(/ (/ (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) i) (/ 1 n))
15.0ms
(/ (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) i)
12.0ms
(* (pow i 2) (log 1.0))

simplify148.0ms

Algorithm
egg-herbie
Counts
504 → 504
Iterations

Useful iterations: 1 (44.0ms)

IterNodesCost
0210911868
1500211180

prune3.5s

Filtered
332 candidates to 504 candidates (-51.8%)
Pruning

16 alts after pruning (14 fresh and 2 done)

PrunedKeptTotal
New5031504
Fresh21315
Picked011
Done011
Total50516521

Merged error: 12.7b

Counts
521 → 16

localize29.0ms

Local error

Found 4 expressions with local error:

11.1b
(* (pow i 2) (log 1.0))
11.3b
(cbrt (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))))
11.3b
(cbrt (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))))
11.3b
(cbrt (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))))

rewrite34.0ms

Algorithm
rewrite-expression-head
Rules
18×add-sqr-sqrt
12×add-cube-cbrt *-un-lft-identity
add-exp-log cbrt-prod
associate-*l*
cbrt-div log-prod add-cbrt-cube
pow1
unpow-prod-down associate-*r* add-log-exp unswap-sqr
distribute-rgt-in flip3-- distribute-lft-in pow1/3 prod-exp flip--
unpow2 sqr-pow
pow-to-exp pow-exp log-pow *-commutative cbrt-unprod
Counts
4 → 73
Calls
4 calls:
6.0ms
(* (pow i 2) (log 1.0))
8.0ms
(cbrt (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))))
9.0ms
(cbrt (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))))
9.0ms
(cbrt (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))))

series184.0ms

Counts
4 → 12
Calls
4 calls:
12.0ms
(* (pow i 2) (log 1.0))
58.0ms
(cbrt (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))))
58.0ms
(cbrt (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))))
56.0ms
(cbrt (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))))

simplify54.0ms

Algorithm
egg-herbie
Counts
85 → 85
Iterations

Useful iterations: 2 (39.0ms)

IterNodesCost
03331468
112201365
250021347

prune800.0ms

Filtered
70 candidates to 85 candidates (-21.4%)
Pruning

19 alts after pruning (16 fresh and 3 done)

PrunedKeptTotal
New82385
Fresh01313
Picked011
Done022
Total8219101

Merged error: 12.7b

Counts
101 → 19

regimes363.0ms

Accuracy

62.5% (6.9b remaining)

Error of 18.1b against oracle of 11.2b and baseline of 29.7b

bsearch281.0ms

Steps
ItersRangePoint
10
217.1840761210043
60736825206781.195
219.56091948369536
8
-157.2281968770579
-0.012523762887340058
-0.05994621222754972

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05332
15332

end0.0ms

sample8.6s

Algorithm
intervals
sampling

Space saved by range analysis: 0%

Space saved by search: 20.956421%

Guaranteed chance to sample good point: 57.924404%

Results
2.4s2803×body1280valid
2.0s924×body2560valid
612.0ms1514×body640valid
177.0ms729×body320valid
117.0ms1676×body80valid
116.0ms232×body640invalid
78.0ms93×body1280invalid
51.0ms345×body160valid
49.0ms157×body320invalid
43.0ms415×body80invalid
42.0msbody5120valid
28.0ms14×body2560invalid
19.0ms102×body160invalid
10.0ms211×body80nan

Profiling

Loading profile data...