Details

Time bar (total: 16.3s)

sample131.0ms

Algorithm
intervals
Results
53.0ms76×body1280valid
36.0ms21×body2560valid
16.0ms60×body640valid
4.0ms25×body320valid
4.0ms98×body80valid
2.0ms70×body80nan
1.0ms28×body80overflowed
1.0ms11×body160valid

simplify45.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
0257
1607
21457
33647
412487
550017

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 40.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.1b
(- (pow (+ 1.0 (/ i n)) n) 1.0)
5.8b
(pow (+ 1.0 (/ i n)) n)
7.7b
(/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n))

rewrite627.0ms

Algorithm
rewrite-expression-head
Rules
320×times-frac
305×add-sqr-sqrt
222×*-un-lft-identity
156×add-cube-cbrt
96×associate-*r*
84×difference-of-squares
48×unpow-prod-down
33×sqr-pow
28×distribute-lft-out--
24×prod-diff
19×add-exp-log
18×add-cbrt-cube
17×div-inv
13×associate-/r*
fma-neg
pow1 associate-/l*
cbrt-undiv div-exp add-log-exp
distribute-lft-out
expm1-log1p-u log1p-expm1-u
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
Counts
4 → 321
Calls
4 calls:
236.0ms
(* 100.0 (/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n)))
130.0ms
(- (pow (+ 1.0 (/ i n)) n) 1.0)
12.0ms
(pow (+ 1.0 (/ i n)) n)
231.0ms
(/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n))

series1.3s

Counts
4 → 12
Calls
4 calls:
386.0ms
(* 100.0 (/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n)))
266.0ms
(- (pow (+ 1.0 (/ i n)) n) 1.0)
228.0ms
(pow (+ 1.0 (/ i n)) n)
376.0ms
(/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n))

simplify64.0ms

Algorithm
egg-herbie
Counts
333 → 333
Iterations

Useful iterations: 1 (29.0ms)

IterNodesCost
013193734
150023446

prune1.0s

Pruning

6 alts after pruning (6 fresh and 0 done)

Merged error: 20.8b

localize17.0ms

Local error

Found 4 expressions with local error:

1.4b
(+ (pow (+ 1.0 (/ i n)) (* 2 n)) (- (* 1.0 1.0)))
5.8b
(pow (+ 1.0 (/ i n)) (* 2 n))
5.8b
(pow (+ 1.0 (/ i n)) n)
7.7b
(/ (/ (+ (pow (+ 1.0 (/ i n)) (* 2 n)) (- (* 1.0 1.0))) (+ (pow (+ 1.0 (/ i n)) n) 1.0)) (/ i n))

rewrite484.0ms

Algorithm
rewrite-expression-head
Rules
717×times-frac
528×*-un-lft-identity
296×add-sqr-sqrt add-cube-cbrt
116×distribute-lft-out
38×div-inv
29×associate-/r/
22×associate-/l*
18×add-exp-log
16×add-cbrt-cube
15×flip3-+ flip-+
13×associate-/r*
12×unpow-prod-down
cbrt-undiv fma-def div-exp add-log-exp
pow1 div-sub
expm1-log1p-u pow-unpow log1p-expm1-u
sqr-pow
neg-sub0 pow-to-exp associate-+r- pow-pow unsub-neg pow-exp sum-log
+-commutative frac-2neg neg-log clear-num associate-/l/
Counts
4 → 410
Calls
4 calls:
92.0ms
(+ (pow (+ 1.0 (/ i n)) (* 2 n)) (- (* 1.0 1.0)))
12.0ms
(pow (+ 1.0 (/ i n)) (* 2 n))
11.0ms
(pow (+ 1.0 (/ i n)) n)
342.0ms
(/ (/ (+ (pow (+ 1.0 (/ i n)) (* 2 n)) (- (* 1.0 1.0))) (+ (pow (+ 1.0 (/ i n)) n) 1.0)) (/ i n))

series2.8s

Counts
4 → 12
Calls
4 calls:
274.0ms
(+ (pow (+ 1.0 (/ i n)) (* 2 n)) (- (* 1.0 1.0)))
237.0ms
(pow (+ 1.0 (/ i n)) (* 2 n))
222.0ms
(pow (+ 1.0 (/ i n)) n)
2.0s
(/ (/ (+ (pow (+ 1.0 (/ i n)) (* 2 n)) (- (* 1.0 1.0))) (+ (pow (+ 1.0 (/ i n)) n) 1.0)) (/ i n))

simplify123.0ms

Algorithm
egg-herbie
Counts
422 → 422
Iterations

Useful iterations: 1 (37.0ms)

IterNodesCost
0188610118
150019695

prune1.1s

Pruning

6 alts after pruning (6 fresh and 0 done)

Merged error: 20.8b

localize15.0ms

Local error

Found 4 expressions with local error:

0.0b
(* (/ 100.0 i) (/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ 1 n)))
0.0b
(/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ 1 n))
1.1b
(- (pow (+ 1.0 (/ i n)) n) 1.0)
5.8b
(pow (+ 1.0 (/ i n)) n)

rewrite635.0ms

Algorithm
rewrite-expression-head
Rules
340×times-frac
330×add-sqr-sqrt
230×*-un-lft-identity
162×add-cube-cbrt
96×associate-*r*
84×difference-of-squares
49×add-exp-log
48×unpow-prod-down
33×sqr-pow
30×add-cbrt-cube
28×distribute-lft-out--
24×prod-diff
23×div-exp
18×div-inv
13×associate-*l* associate-/r*
12×cbrt-undiv
10×prod-exp
fma-neg unswap-sqr
pow1 associate-/l*
cbrt-unprod add-log-exp
distribute-lft-out
expm1-log1p-u log1p-expm1-u
rec-exp pow-unpow 1-exp
flip3-- associate-/r/ flip-- associate-/l/
frac-times pow-to-exp sub-neg pow-pow frac-2neg diff-log div-sub associate-*r/ pow-prod-down associate-*l/ pow-exp clear-num *-commutative
Counts
4 → 350
Calls
4 calls:
247.0ms
(* (/ 100.0 i) (/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ 1 n)))
223.0ms
(/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ 1 n))
130.0ms
(- (pow (+ 1.0 (/ i n)) n) 1.0)
12.0ms
(pow (+ 1.0 (/ i n)) n)

series1.2s

Counts
4 → 12
Calls
4 calls:
375.0ms
(* (/ 100.0 i) (/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ 1 n)))
308.0ms
(/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ 1 n))
262.0ms
(- (pow (+ 1.0 (/ i n)) n) 1.0)
219.0ms
(pow (+ 1.0 (/ i n)) n)

simplify76.0ms

Algorithm
egg-herbie
Counts
362 → 362
Iterations

Useful iterations: 1 (32.0ms)

IterNodesCost
015764180
150013683

prune773.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 12.7b

localize16.0ms

Local error

Found 4 expressions with local error:

0.0b
(fma i 1.0 (- (fma 0.5 (pow i 2) (* (log 1.0) n)) (* 0.5 (* (pow i 2) (log 1.0)))))
2.8b
(/ (fma i 1.0 (- (fma 0.5 (pow i 2) (* (log 1.0) n)) (* 0.5 (* (pow i 2) (log 1.0))))) (/ 1 n))
10.4b
(* (pow i 2) (log 1.0))
16.4b
(* (/ 100.0 i) (/ (fma i 1.0 (- (fma 0.5 (pow i 2) (* (log 1.0) n)) (* 0.5 (* (pow i 2) (log 1.0))))) (/ 1 n)))

rewrite53.0ms

Algorithm
rewrite-expression-head
Rules
164×times-frac
127×add-sqr-sqrt
95×*-un-lft-identity
93×add-cube-cbrt
53×add-exp-log
48×associate-*r*
32×add-cbrt-cube
23×div-exp
21×associate-*l*
13×prod-exp associate-/r*
12×cbrt-undiv unswap-sqr
10×div-inv
pow1 cbrt-unprod
log-prod
expm1-log1p-u unpow-prod-down log1p-expm1-u add-log-exp
distribute-rgt-in rec-exp distribute-lft-in 1-exp associate-/l*
associate-/r/ *-commutative unpow2 sqr-pow
frac-times pow-to-exp frac-2neg associate-*r/ pow-prod-down associate-*l/ pow-exp clear-num log-pow fma-udef
Counts
4 → 215
Calls
4 calls:
0.0ms
(fma i 1.0 (- (fma 0.5 (pow i 2) (* (log 1.0) n)) (* 0.5 (* (pow i 2) (log 1.0)))))
8.0ms
(/ (fma i 1.0 (- (fma 0.5 (pow i 2) (* (log 1.0) n)) (* 0.5 (* (pow i 2) (log 1.0))))) (/ 1 n))
7.0ms
(* (pow i 2) (log 1.0))
28.0ms
(* (/ 100.0 i) (/ (fma i 1.0 (- (fma 0.5 (pow i 2) (* (log 1.0) n)) (* 0.5 (* (pow i 2) (log 1.0))))) (/ 1 n)))

series623.0ms

Counts
4 → 12
Calls
4 calls:
98.0ms
(fma i 1.0 (- (fma 0.5 (pow i 2) (* (log 1.0) n)) (* 0.5 (* (pow i 2) (log 1.0)))))
157.0ms
(/ (fma i 1.0 (- (fma 0.5 (pow i 2) (* (log 1.0) n)) (* 0.5 (* (pow i 2) (log 1.0))))) (/ 1 n))
145.0ms
(* (pow i 2) (log 1.0))
222.0ms
(* (/ 100.0 i) (/ (fma i 1.0 (- (fma 0.5 (pow i 2) (* (log 1.0) n)) (* 0.5 (* (pow i 2) (log 1.0))))) (/ 1 n)))

simplify57.0ms

Algorithm
egg-herbie
Counts
227 → 227
Iterations

Useful iterations: 1 (23.0ms)

IterNodesCost
09673888
150023474

prune667.0ms

Pruning

16 alts after pruning (16 fresh and 0 done)

Merged error: 12.7b

regimes196.0ms

Accuracy

45.9% (13.1b remaining)

Error of 24.6b against oracle of 11.4b and baseline of 35.7b

bsearch206.0ms

Steps
ItersRangePoint
6
2.9905422499130755e-165
2.0721547055092453e-164
4.279716239820104e-165
8
1.2055374660761621e-267
4.8681767545597665e-263
1.234477812642328e-267
5
-4.0828566167469306e+260
-1.3227323216581745e+260
-1.8403630755190044e+260

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05442
15442

end0.0ms

sample4.1s

Algorithm
intervals
Results
1.5s2251×body1280valid
1.4s791×body2560valid
443.0ms1596×body640valid
142.0ms884×body320valid
138.0ms3303×body80valid
83.0ms2479×body80nan
43.0ms985×body80overflowed
42.0ms422×body160valid
24.0msbody5120valid