Details

Time bar (total: 12.9s)

sample206.0ms

Algorithm
intervals
Results
84.0ms39×body2560valid
69.0ms82×body1280valid
19.0ms55×body640valid
10.0ms93×body80valid
5.0ms20×body320valid
3.0ms73×body80nan
3.0ms20×body160valid

simplify43.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0257
1597
21417
33467
411717
550017

prune2.0ms

Filtered
1 candidates to 0 candidates (0.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 45.9b

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)))
2.3b
(- (pow (+ 1.0 (/ i n)) n) 1.0)
7.5b
(pow (+ 1.0 (/ i n)) n)
9.7b
(/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n))

rewrite87.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:
35.0ms
(* 100.0 (/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n)))
10.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))

series1.2s

Counts
4 → 12
Calls
4 calls:
382.0ms
(* 100.0 (/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n)))
264.0ms
(- (pow (+ 1.0 (/ i n)) n) 1.0)
223.0ms
(pow (+ 1.0 (/ i n)) n)
360.0ms
(/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n))

simplify66.0ms

Algorithm
egg-herbie
Counts
293 → 293
Iterations

Useful iterations: 1 (28.0ms)

IterNodesCost
012263285
150023166

prune769.0ms

Filtered
293 candidates to 223 candidates (76.1%)
Pruning

10 alts after pruning (10 fresh and 0 done)

PrunedKeptTotal
New28310293
Fresh000
Picked101
Done000
Total28410294

Merged error: 21.4b

Counts
294 → 10

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)))
11.6b
(* (pow i 2) (log 1.0))
19.1b
(/ (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) (/ i n))

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

series588.0ms

Counts
4 → 12
Calls
4 calls:
24.0ms
(* 0.5 (pow i 2))
222.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)))
146.0ms
(* (pow i 2) (log 1.0))
195.0ms
(/ (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) (/ i n))

simplify140.0ms

Algorithm
egg-herbie
Counts
212 → 212
Iterations

Useful iterations: 1 (24.0ms)

IterNodesCost
09073537
148563275
250013275

prune680.0ms

Filtered
212 candidates to 157 candidates (74.1%)
Pruning

22 alts after pruning (22 fresh and 0 done)

PrunedKeptTotal
New19913212
Fresh099
Picked101
Done000
Total20022222

Merged error: 10.9b

Counts
222 → 22

localize16.0ms

Local error

Found 4 expressions with local error:

0.0b
(* (/ (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) i) n)
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.0b
(/ (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) i)
11.6b
(* (pow i 2) (log 1.0))

rewrite47.0ms

Algorithm
rewrite-expression-head
Rules
37×add-sqr-sqrt
26×add-cube-cbrt *-un-lft-identity
25×add-exp-log
24×associate-*l*
22×add-cbrt-cube
19×times-frac
12×pow1
10×prod-exp
associate-*r* cbrt-unprod
log-prod unswap-sqr
unpow-prod-down pow-prod-down add-log-exp
cbrt-undiv distribute-rgt-in distribute-lft-in div-exp associate-/r* *-commutative associate-/l*
associate-*l/ div-inv associate-/l/ unpow2 sqr-pow
pow-to-exp flip3-- frac-2neg div-sub associate-*r/ pow-exp clear-num log-pow flip--
Counts
4 → 117
Calls
4 calls:
11.0ms
(* (/ (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) i) n)
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))

series691.0ms

Counts
4 → 12
Calls
4 calls:
198.0ms
(* (/ (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) i) n)
216.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))
139.0ms
(/ (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) i)
137.0ms
(* (pow i 2) (log 1.0))

simplify79.0ms

Algorithm
egg-herbie
Counts
129 → 129
Iterations

Useful iterations: 2 (61.0ms)

IterNodesCost
05291979
124351684
250011679

prune371.0ms

Filtered
129 candidates to 87 candidates (67.4%)
Pruning

21 alts after pruning (20 fresh and 1 done)

PrunedKeptTotal
New1281129
Fresh21921
Picked011
Done000
Total13021151

Merged error: 10.9b

Counts
151 → 21

localize21.0ms

Local error

Found 4 expressions with local error:

0.3b
(* 100.0 (* (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) n))
2.9b
(* (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) n)
11.6b
(* (pow i 2) (log 1.0))
12.5b
(/ (* 100.0 (* (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) n)) i)

rewrite48.0ms

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

series684.0ms

Counts
4 → 12
Calls
4 calls:
163.0ms
(* 100.0 (* (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) n))
157.0ms
(* (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) n)
140.0ms
(* (pow i 2) (log 1.0))
223.0ms
(/ (* 100.0 (* (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) n)) i)

simplify89.0ms

Algorithm
egg-herbie
Counts
111 → 111
Iterations

Useful iterations: 1 (14.0ms)

IterNodesCost
05091627
127791331
250011331

prune256.0ms

Filtered
111 candidates to 71 candidates (64.0%)
Pruning

20 alts after pruning (18 fresh and 2 done)

PrunedKeptTotal
New1083111
Fresh41519
Picked011
Done011
Total11220132

Merged error: 10.9b

Counts
132 → 20

regimes343.0ms

Accuracy

69.2% (5.6b remaining)

Error of 16.1b against oracle of 10.5b and baseline of 28.8b

bsearch248.0ms

Steps
ItersRangePoint
7
0.00022027325057658872
0.008784522488119305
0.005619708242321016
10
-18784469646.78796
-0.08793709934347878
-0.21878848523850206

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
06750
16950
26950

end0.0ms

sample6.1s

Algorithm
intervals
Results
2.4s2886×body1280valid
2.1s1003×body2560valid
724.0ms1746×body640valid
221.0ms908×body320valid
178.0ms2475×body80valid
104.0ms2304×body80nan
67.0ms436×body160valid
11.0msbody5120valid

Profiling

Loading profile data...