Details

Time bar (total: 14.5s)

sample168.0ms

Algorithm
intervals
Results
68.0ms33×body2560valid
59.0ms83×body1280valid
14.0ms50×body640valid
4.0ms103×body80valid
4.0ms22×body320valid
3.0ms76×body80nan
1.0ms13×body160valid

simplify40.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0257
1597
21417
33467
411717
550017

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 42.6b

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

rewrite790.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:
324.0ms
(* 100.0 (/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n)))
148.0ms
(- (pow (+ 1.0 (/ i n)) n) 1.0)
17.0ms
(pow (+ 1.0 (/ i n)) n)
281.0ms
(/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n))

series1.1s

Counts
4 → 12
Calls
4 calls:
343.0ms
(* 100.0 (/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n)))
224.0ms
(- (pow (+ 1.0 (/ i n)) n) 1.0)
202.0ms
(pow (+ 1.0 (/ i n)) n)
326.0ms
(/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n))

simplify63.0ms

Algorithm
egg-herbie
Counts
293 → 293
Iterations

Useful iterations: 1 (26.0ms)

IterNodesCost
012263285
150013166

prune814.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 20.4b

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

rewrite527.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:
18.0ms
(+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n)))
246.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)))
12.0ms
(* (pow i 2) (log 1.0))
242.0ms
(/ (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) (/ i n))

series545.0ms

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

simplify138.0ms

Algorithm
egg-herbie
Counts
198 → 198
Iterations

Useful iterations: 1 (24.0ms)

IterNodesCost
09293604
148183341
250013341

prune716.0ms

Pruning

19 alts after pruning (19 fresh and 0 done)

Merged error: 10.5b

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

rewrite471.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:
19.0ms
(+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n)))
194.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))
243.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))

series508.0ms

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

simplify75.0ms

Algorithm
egg-herbie
Counts
110 → 110
Iterations

Useful iterations: 2 (61.0ms)

IterNodesCost
05401516
124651293
250011289

prune351.0ms

Pruning

18 alts after pruning (18 fresh and 0 done)

Merged error: 10.5b

localize17.0ms

Local error

Found 4 expressions with local error:

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

rewrite1.3s

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:
448.0ms
(* 100.0 (* (- (+ (* 1.0 i) (+ (* 0.5 (pow i 2)) (* (log 1.0) n))) (* 0.5 (* (pow i 2) (log 1.0)))) n))
372.0ms
(* (- (+ (* 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))
456.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)

series611.0ms

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

prune298.0ms

Pruning

19 alts after pruning (18 fresh and 1 done)

Merged error: 10.5b

regimes355.0ms

Accuracy

55.5% (9.8b remaining)

Error of 20.5b against oracle of 10.7b and baseline of 32.7b

bsearch564.0ms

Steps
ItersRangePoint
8
8405677.530639332
247854277376.88788
8648182.724030523
10
2.017926598606132e-198
9.661391276069124e-188
6.118499728754747e-197
11
-92979007833.71625
-2.7642923683296913e-21
-0.5511580558700998

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
07369
17369

end0.0ms

sample4.9s

Algorithm
intervals
Results
1.9s1000×body2560valid
1.7s2498×body1280valid
465.0ms1618×body640valid
132.0ms3038×body80valid
130.0ms787×body320valid
73.0ms2254×body80nan
44.0ms435×body160valid
25.0msbody5120valid