Details

Time bar (total: 13.4s)

sample1.2s

Algorithm
intervals
sampling

Space saved by range analysis: 0%

Space saved by search: 17.684937%

Guaranteed chance to sample good point: 88.521855%

Results
72.0ms88×body1280valid
70.0ms32×body2560valid
20.0ms49×body640valid
6.0ms25×body320valid
5.0msbody5120valid
5.0msbody1280invalid
4.0ms54×body80valid
3.0msbody640invalid
2.0msbody320invalid
2.0ms23×body80invalid
1.0msbody160valid
1.0msbody160invalid
1.0ms10×body80nan

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: 46.0b

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.1b
(- (pow (+ 1.0 (/ i n)) n) 1.0)
6.8b
(pow (+ 1.0 (/ i n)) n)
10.2b
(/ (- (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:
32.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)
21.0ms
(/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n))

series191.0ms

Counts
4 → 12
Calls
4 calls:
65.0ms
(* 100.0 (/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n)))
36.0ms
(- (pow (+ 1.0 (/ i n)) n) 1.0)
25.0ms
(pow (+ 1.0 (/ i n)) n)
65.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

prune646.0ms

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

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New2867293
Fresh000
Picked101
Done000
Total2877294

Merged error: 18.0b

Counts
294 → 7

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.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.6b
(* (pow i 2) (log 1.0))
17.6b
(/ (- (+ (* 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
102×add-sqr-sqrt
87×add-cube-cbrt *-un-lft-identity
48×associate-*r*
23×add-exp-log
20×add-cbrt-cube
13×associate-/r*
11×associate-*l*
div-inv add-log-exp
pow1 unswap-sqr
cbrt-undiv log-prod div-exp prod-exp
unpow-prod-down cbrt-unprod
distribute-rgt-in distribute-lft-in sum-log associate-/l*
associate-/r/ *-commutative associate-/l/ unpow2 sqr-pow
+-commutative pow-to-exp associate-+r+ flip3-- frac-2neg flip3-+ div-sub associate-*r/ pow-prod-down pow-exp clear-num log-pow flip-- flip-+
Counts
4 → 186
Calls
4 calls:
7.0ms
(+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n)))
24.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)))
7.0ms
(* (pow i 2) (log 1.0))
16.0ms
(/ (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) (/ i n))

series67.0ms

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

simplify171.0ms

Algorithm
egg-herbie
Counts
198 → 198
Iterations

Useful iterations: 1 (32.0ms)

IterNodesCost
09293604
148183341
250013341

prune895.0ms

Filtered
150 candidates to 198 candidates (-32.0%)
Pruning

16 alts after pruning (16 fresh and 0 done)

PrunedKeptTotal
New18810198
Fresh066
Picked101
Done000
Total18916205

Merged error: 7.8b

Counts
205 → 16

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

rewrite45.0ms

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

series59.0ms

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

simplify94.0ms

Algorithm
egg-herbie
Counts
110 → 110
Iterations

Useful iterations: 2 (74.0ms)

IterNodesCost
05401516
124651293
250011289

prune354.0ms

Filtered
72 candidates to 110 candidates (-52.8%)
Pruning

16 alts after pruning (15 fresh and 1 done)

PrunedKeptTotal
New1100110
Fresh01515
Picked011
Done000
Total11016126

Merged error: 7.8b

Counts
126 → 16

localize28.0ms

Local error

Found 4 expressions with local error:

10.6b
(* (pow i 2) (log 1.0))
10.8b
(cbrt (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))))
10.8b
(cbrt (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))))
10.8b
(cbrt (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))))

rewrite40.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:
7.0ms
(* (pow i 2) (log 1.0))
11.0ms
(cbrt (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))))
10.0ms
(cbrt (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))))
10.0ms
(cbrt (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))))

series195.0ms

Counts
4 → 12
Calls
4 calls:
13.0ms
(* (pow i 2) (log 1.0))
60.0ms
(cbrt (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))))
59.0ms
(cbrt (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))))
62.0ms
(cbrt (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))))

simplify60.0ms

Algorithm
egg-herbie
Counts
85 → 85
Iterations

Useful iterations: 2 (45.0ms)

IterNodesCost
03331468
112201365
250021347

prune886.0ms

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

16 alts after pruning (15 fresh and 1 done)

PrunedKeptTotal
New84185
Fresh01414
Picked101
Done011
Total8516101

Merged error: 7.8b

Counts
101 → 16

regimes552.0ms

Accuracy

69.8% (5.6b remaining)

Error of 16.0b against oracle of 10.4b and baseline of 28.8b

bsearch239.0ms

Steps
ItersRangePoint
12
7.758043995828473e-12
2.7324892073549815e+45
1.5120834945497763
9
-16.011709609627676
-4.874582257449802e-06
-0.39780581747886845

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04522
14522

end0.0ms

sample7.4s

Algorithm
intervals
sampling

Space saved by range analysis: 0%

Space saved by search: 17.684937%

Guaranteed chance to sample good point: 88.521855%

Results
2.4s2755×body1280valid
2.2s1026×body2560valid
659.0ms1571×body640valid
175.0ms703×body320valid
120.0ms1628×body80valid
117.0ms227×body640invalid
95.0ms111×body1280invalid
78.0ms860×body80invalid
52.0ms159×body320invalid
47.0ms312×body160valid
26.0ms13×body2560invalid
22.0msbody5120valid
21.0ms109×body160invalid
10.0ms200×body80nan

Profiling

Loading profile data...