Details

Time bar (total: 11.0s)

sample418.0ms

Algorithm
intervals
sampling

Space saved by range analysis: 0%

Space saved by search: 0%

Guaranteed chance to sample good point: 24.340063%

Results
85.0ms94×body1280valid
82.0ms35×body2560valid
20.0ms44×body640valid
7.0ms25×body320valid
7.0ms89×body80valid
3.0ms62×body80nan
2.0ms12×body160valid

simplify45.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.4b

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.3b
(- (pow (+ 1.0 (/ i n)) n) 1.0)
7.3b
(pow (+ 1.0 (/ i n)) n)
12.9b
(/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n))

rewrite95.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)
21.0ms
(/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n))

series198.0ms

Counts
4 → 12
Calls
4 calls:
69.0ms
(* 100.0 (/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n)))
37.0ms
(- (pow (+ 1.0 (/ i n)) n) 1.0)
31.0ms
(pow (+ 1.0 (/ i n)) n)
61.0ms
(/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n))

simplify66.0ms

Algorithm
egg-herbie
Counts
293 → 293
Iterations

Useful iterations: 1 (31.0ms)

IterNodesCost
012263285
150023166

prune660.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: 22.5b

Counts
294 → 6

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

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

series63.0ms

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

simplify157.0ms

Algorithm
egg-herbie
Counts
212 → 212
Iterations

Useful iterations: 1 (27.0ms)

IterNodesCost
09073537
148563275
250013275

prune859.0ms

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

13 alts after pruning (13 fresh and 0 done)

PrunedKeptTotal
New2048212
Fresh055
Picked101
Done000
Total20513218

Merged error: 9.3b

Counts
218 → 13

localize20.0ms

Local error

Found 4 expressions with local error:

0.0b
(* 0.5 (pow i 2))
0.3b
(* (* 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))

rewrite40.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
15×associate-*r*
12×associate-*l*
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:
6.0ms
(* 0.5 (pow i 2))
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)
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))

series59.0ms

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

simplify89.0ms

Algorithm
egg-herbie
Counts
124 → 124
Iterations

Useful iterations: 1 (17.0ms)

IterNodesCost
05251450
126211228
250011228

prune348.0ms

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

13 alts after pruning (12 fresh and 1 done)

PrunedKeptTotal
New1231124
Fresh11112
Picked011
Done000
Total12413137

Merged error: 9.3b

Counts
137 → 13

localize18.0ms

Local error

Found 4 expressions with local error:

0.0b
(* 100.0 (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))))
2.7b
(* (* 100.0 (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0))))) n)
11.4b
(* (pow i 2) (log 1.0))
12.6b
(/ (* (* 100.0 (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0))))) n) i)

rewrite50.0ms

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

series65.0ms

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

simplify105.0ms

Algorithm
egg-herbie
Counts
117 → 117
Iterations

Useful iterations: 2 (85.0ms)

IterNodesCost
05391687
131131361
250011336

prune286.0ms

Filtered
78 candidates to 117 candidates (-50.0%)
Pruning

13 alts after pruning (12 fresh and 1 done)

PrunedKeptTotal
New1134117
Fresh3811
Picked101
Done011
Total11713130

Merged error: 9.3b

Counts
130 → 13

regimes232.0ms

Accuracy

65% (6.3b remaining)

Error of 17.1b against oracle of 10.7b and baseline of 28.9b

bsearch308.0ms

Steps
ItersRangePoint
12
9.383758716671574e+49
1.4644946837027803e+89
9.532360402610846e+49
9
-2.1005547882066785e-05
-2.2613526106276006e-10
-2.076066022483383e-05

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05730
15730

end0.0ms

sample6.7s

Algorithm
intervals
sampling

Space saved by range analysis: 0%

Space saved by search: 0%

Guaranteed chance to sample good point: 24.340063%

Results
2.6s2913×body1280valid
2.1s973×body2560valid
755.0ms1776×body640valid
228.0ms881×body320valid
195.0ms2466×body80valid
110.0ms2311×body80nan
71.0ms420×body160valid
44.0ms10×body5120valid

Profiling

Loading profile data...