Details

Time bar (total: 16.1s)

sample3.0s

Algorithm
intervals
sampling

Space saved by range analysis: 0%

Space saved by search: 20.956421%

Guaranteed chance to sample good point: 57.924404%

Results
77.0ms95×body1280valid
76.0ms37×body2560valid
21.0ms53×body640valid
4.0ms52×body80valid
3.0msbody640invalid
3.0ms13×body320valid
3.0msbody1280invalid
2.0msbody320invalid
1.0ms16×body80invalid
1.0msbody160invalid
1.0msbody160valid
0.0msbody80nan

simplify43.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: 49.0b

Counts
2 → 1

localize8.0ms

Local error

Found 4 expressions with local error:

0.0b
(* 100.0 (/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n)))
0.7b
(- (pow (+ 1.0 (/ i n)) n) 1.0)
6.1b
(pow (+ 1.0 (/ i n)) n)
10.9b
(/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n))

rewrite80.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)
6.0ms
(pow (+ 1.0 (/ i n)) n)
15.0ms
(/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n))

series186.0ms

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

simplify66.0ms

Algorithm
egg-herbie
Counts
293 → 293
Iterations

Useful iterations: 1 (32.0ms)

IterNodesCost
012263285
150023166

prune653.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: 19.0b

Counts
294 → 6

localize19.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)))
7.4b
(* (pow i 2) (log 1.0))
17.7b
(/ (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) (/ i n))

rewrite51.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))
19.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))
13.0ms
(/ (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) (/ i n))

series60.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)))
17.0ms
(* (pow i 2) (log 1.0))
19.0ms
(/ (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) (/ i n))

simplify150.0ms

Algorithm
egg-herbie
Counts
212 → 212
Iterations

Useful iterations: 1 (26.0ms)

IterNodesCost
09073537
148563275
250013275

prune813.0ms

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

17 alts after pruning (17 fresh and 0 done)

PrunedKeptTotal
New20012212
Fresh055
Picked101
Done000
Total20117218

Merged error: 7.5b

Counts
218 → 17

localize16.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))
7.0b
(/ (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) i)
7.4b
(* (pow i 2) (log 1.0))

rewrite38.0ms

Algorithm
rewrite-expression-head
Rules
33×add-sqr-sqrt
25×add-exp-log
21×add-cube-cbrt *-un-lft-identity
19×add-cbrt-cube
14×associate-*l*
13×associate-*r*
11×prod-exp
10×pow1
times-frac
unpow-prod-down unswap-sqr
cbrt-unprod
log-prod
unpow2 add-log-exp sqr-pow
distribute-rgt-in distribute-lft-in pow-prod-down associate-/r* *-commutative associate-/l*
cbrt-undiv pow-to-exp div-exp pow-exp associate-/l/
flip3-- frac-2neg div-sub associate-*r/ associate-*l/ clear-num log-pow flip-- div-inv
Counts
4 → 112
Calls
4 calls:
7.0ms
(* 0.5 (pow i 2))
11.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))
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))

series50.0ms

Counts
4 → 12
Calls
4 calls:
3.0ms
(* 0.5 (pow i 2))
20.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))
14.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))

simplify81.0ms

Algorithm
egg-herbie
Counts
124 → 124
Iterations

Useful iterations: 2 (66.0ms)

IterNodesCost
05181449
124681227
250011223

prune329.0ms

Filtered
79 candidates to 124 candidates (-57.0%)
Pruning

17 alts after pruning (16 fresh and 1 done)

PrunedKeptTotal
New1231124
Fresh11516
Picked011
Done000
Total12417141

Merged error: 7.5b

Counts
141 → 17

localize21.0ms

Local error

Found 4 expressions with local error:

7.4b
(* (pow i 2) (log 1.0))
7.8b
(cbrt (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))))
7.8b
(cbrt (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))))
7.8b
(cbrt (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))))

rewrite35.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:
8.0ms
(* (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)))))
8.0ms
(cbrt (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))))

series181.0ms

Counts
4 → 12
Calls
4 calls:
14.0ms
(* (pow i 2) (log 1.0))
55.0ms
(cbrt (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))))
57.0ms
(cbrt (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))))
55.0ms
(cbrt (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))))

simplify58.0ms

Algorithm
egg-herbie
Counts
85 → 85
Iterations

Useful iterations: 2 (42.0ms)

IterNodesCost
03331468
112201365
250021347

prune670.0ms

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

17 alts after pruning (16 fresh and 1 done)

PrunedKeptTotal
New82385
Fresh21315
Picked101
Done011
Total8517102

Merged error: 7.5b

Counts
102 → 17

regimes294.0ms

Accuracy

68.3% (5.7b remaining)

Error of 16.7b against oracle of 11.0b and baseline of 28.9b

bsearch355.0ms

Steps
ItersRangePoint
9
1.8146240512922834e+250
3.354835105769148e+255
1.3545253801925772e+252
7
8.212337951483374e+131
1.8761634991667e+133
1.7764578067101197e+133
11
0.0003288718850142013
9.840401450849524e+22
0.22710708797976797
9
-16.011709609627676
-1.7988917796407912e-07
-0.0008777616013522305

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
07148
17148

end0.0ms

sample8.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
2.4s2766×body1280valid
2.1s988×body2560valid
640.0ms1573×body640valid
163.0ms700×body320valid
117.0ms236×body640invalid
112.0ms1600×body80valid
89.0ms108×body1280invalid
55.0ms173×body320invalid
53.0ms365×body160valid
37.0ms395×body80invalid
33.0msbody5120valid
25.0ms13×body2560invalid
16.0ms86×body160invalid
8.0ms167×body80nan

Profiling

Loading profile data...