Details

Time bar (total: 12.1s)

analyze868.0ms

Algorithm
search

sample223.0ms

Algorithm
intervals
Results
89.0ms37×body2560valid
78.0ms85×body1280valid
18.0ms42×body640valid
7.0ms26×body320valid
5.0msbody1280invalid
4.0msbody640invalid
4.0ms53×body80valid
2.0ms13×body160valid
2.0msbody320invalid
1.0ms11×body80invalid
1.0msbody160invalid
1.0ms13×body80nan

simplify44.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0257
1597
21417
33467
411717
550017

prune4.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 48.7b

Counts
2 → 1

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(* 100.0 (/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n)))
1.9b
(- (pow (+ 1.0 (/ i n)) n) 1.0)
7.1b
(pow (+ 1.0 (/ i n)) n)
11.4b
(/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n))

rewrite92.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:
38.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)
17.0ms
(/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n))

series198.0ms

Counts
4 → 12
Calls
4 calls:
68.0ms
(* 100.0 (/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n)))
36.0ms
(- (pow (+ 1.0 (/ i n)) n) 1.0)
27.0ms
(pow (+ 1.0 (/ i n)) n)
67.0ms
(/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n))

simplify67.0ms

Algorithm
egg-herbie
Counts
293 → 293
Iterations

Useful iterations: 1 (31.0ms)

IterNodesCost
012263285
150023166

prune663.0ms

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

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New2858293
Fresh000
Picked101
Done000
Total2868294

Merged error: 23.1b

Counts
294 → 8

localize18.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.4b
(* (pow i 2) (log 1.0))
19.5b
(/ (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) (/ i n))

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

series61.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))
23.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 (25.0ms)

IterNodesCost
09073537
148563275
250013275

prune874.0ms

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

18 alts after pruning (18 fresh and 0 done)

PrunedKeptTotal
New20111212
Fresh077
Picked101
Done000
Total20218220

Merged error: 11.5b

Counts
220 → 18

localize18.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))
10.7b
(/ (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) i)
11.4b
(* (pow i 2) (log 1.0))

rewrite48.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:
12.0ms
(* (/ (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) i) n)
14.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)
7.0ms
(* (pow i 2) (log 1.0))

series73.0ms

Counts
4 → 12
Calls
4 calls:
23.0ms
(* (/ (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) i) n)
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))
15.0ms
(/ (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) i)
13.0ms
(* (pow i 2) (log 1.0))

simplify81.0ms

Algorithm
egg-herbie
Counts
129 → 129
Iterations

Useful iterations: 2 (63.0ms)

IterNodesCost
05291979
124351684
250011679

prune425.0ms

Filtered
87 candidates to 129 candidates (-48.3%)
Pruning

18 alts after pruning (17 fresh and 1 done)

PrunedKeptTotal
New1272129
Fresh21517
Picked011
Done000
Total12918147

Merged error: 11.5b

Counts
147 → 18

localize14.0ms

Local error

Found 2 expressions with local error:

0.0b
(* (- (+ (* 0.5 i) (+ (/ (* (log 1.0) n) i) 1.0)) (* 0.5 (* i (log 1.0)))) n)
0.1b
(* 100.0 (* (- (+ (* 0.5 i) (+ (/ (* (log 1.0) n) i) 1.0)) (* 0.5 (* i (log 1.0)))) n))

rewrite33.0ms

Algorithm
rewrite-expression-head
Rules
pow1 add-exp-log add-cbrt-cube
add-sqr-sqrt
associate-*l*
add-cube-cbrt *-un-lft-identity
associate-*r* pow-prod-down associate-*l/ prod-exp cbrt-unprod
flip3-- associate-*r/ *-commutative flip-- add-log-exp
unswap-sqr
Counts
2 → 40
Calls
2 calls:
16.0ms
(* (- (+ (* 0.5 i) (+ (/ (* (log 1.0) n) i) 1.0)) (* 0.5 (* i (log 1.0)))) n)
15.0ms
(* 100.0 (* (- (+ (* 0.5 i) (+ (/ (* (log 1.0) n) i) 1.0)) (* 0.5 (* i (log 1.0)))) n))

series31.0ms

Counts
2 → 6
Calls
2 calls:
15.0ms
(* (- (+ (* 0.5 i) (+ (/ (* (log 1.0) n) i) 1.0)) (* 0.5 (* i (log 1.0)))) n)
16.0ms
(* 100.0 (* (- (+ (* 0.5 i) (+ (/ (* (log 1.0) n) i) 1.0)) (* 0.5 (* i (log 1.0)))) n))

simplify47.0ms

Algorithm
egg-herbie
Counts
46 → 46
Iterations

Useful iterations: 1 (8.0ms)

IterNodesCost
0252736
11188612
25001612

prune89.0ms

Filtered
30 candidates to 46 candidates (-53.3%)
Pruning

18 alts after pruning (16 fresh and 2 done)

PrunedKeptTotal
New46046
Fresh01616
Picked011
Done011
Total461864

Merged error: 11.5b

Counts
64 → 18

regimes461.0ms

Accuracy

68.7% (5.6b remaining)

Error of 16.5b against oracle of 11.0b and baseline of 28.8b

bsearch379.0ms

Steps
ItersRangePoint
9
0.09808863093133222
6951.38993561627
0.18733134105301183
5
-1.590324049603931e-10
-5.3678213925771454e-11
-1.3412065908225887e-10

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05427
15427

end0.0ms

analyze858.0ms

Algorithm
search

sample6.2s

Algorithm
intervals
Results
2.5s2807×body1280valid
2.1s972×body2560valid
628.0ms1519×body640valid
178.0ms725×body320valid
124.0ms235×body640invalid
120.0ms1616×body80valid
92.0ms110×body1280invalid
56.0ms354×body160valid
53.0ms512×body80invalid
52.0ms158×body320invalid
23.0msbody5120valid
21.0ms10×body2560invalid
18.0ms313×body80nan
16.0ms82×body160invalid

Profiling

Loading profile data...