Details

Time bar (total: 12.8s)

sample205.0ms

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

simplify42.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))

rewrite94.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:
36.0ms
(* 100.0 (/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n)))
13.0ms
(- (pow (+ 1.0 (/ i n)) n) 1.0)
7.0ms
(pow (+ 1.0 (/ i n)) n)
17.0ms
(/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n))

series1.2s

Counts
4 → 12
Calls
4 calls:
367.0ms
(* 100.0 (/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n)))
242.0ms
(- (pow (+ 1.0 (/ i n)) n) 1.0)
204.0ms
(pow (+ 1.0 (/ i n)) n)
373.0ms
(/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n))

simplify63.0ms

Algorithm
egg-herbie
Counts
293 → 293
Iterations

Useful iterations: 1 (27.0ms)

IterNodesCost
012263285
150023166

prune680.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

localize17.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))

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

series554.0ms

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

simplify147.0ms

Algorithm
egg-herbie
Counts
212 → 212
Iterations

Useful iterations: 1 (23.0ms)

IterNodesCost
09073537
148563275
250013275

prune669.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

localize17.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))

rewrite49.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)
12.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))
16.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))

series690.0ms

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

simplify78.0ms

Algorithm
egg-herbie
Counts
129 → 129
Iterations

Useful iterations: 2 (60.0ms)

IterNodesCost
05291979
124351684
250011679

prune383.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

localize18.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)

rewrite46.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))
11.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)

series635.0ms

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

simplify84.0ms

Algorithm
egg-herbie
Counts
111 → 111
Iterations

Useful iterations: 1 (14.0ms)

IterNodesCost
05091627
127791331
250011331

prune251.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

regimes351.0ms

Accuracy

69.2% (5.6b remaining)

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

bsearch273.0ms

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

simplify3.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
06750
16950
26950

end0.0ms

sample6.2s

Algorithm
intervals
Results
2.5s2886×body1280valid
2.1s1003×body2560valid
724.0ms1746×body640valid
229.0ms908×body320valid
182.0ms2475×body80valid
110.0ms2304×body80nan
68.0ms436×body160valid
11.0msbody5120valid

Profiling

Loading profile data...