Details

Time bar (total: 16.1s)

sample153.0ms

Algorithm
intervals
Results
59.0ms79×body1280valid
50.0ms25×body2560valid
20.0ms65×body640valid
4.0ms100×body80valid
3.0ms18×body320valid
3.0ms85×body80nan
1.0ms12×body160valid

simplify47.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: 42.9b

localize9.0ms

Local error

Found 4 expressions with local error:

0.1b
(* 100.0 (/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n)))
1.9b
(- (pow (+ 1.0 (/ i n)) n) 1.0)
5.6b
(pow (+ 1.0 (/ i n)) n)
9.4b
(/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n))

rewrite613.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:
230.0ms
(* 100.0 (/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n)))
127.0ms
(- (pow (+ 1.0 (/ i n)) n) 1.0)
11.0ms
(pow (+ 1.0 (/ i n)) n)
225.0ms
(/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n))

series1.2s

Counts
4 → 12
Calls
4 calls:
375.0ms
(* 100.0 (/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n)))
261.0ms
(- (pow (+ 1.0 (/ i n)) n) 1.0)
222.0ms
(pow (+ 1.0 (/ i n)) n)
350.0ms
(/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n))

simplify77.0ms

Algorithm
egg-herbie
Counts
333 → 333
Iterations

Useful iterations: 1 (32.0ms)

IterNodesCost
013193734
150023446

prune853.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 21.4b

localize14.0ms

Local error

Found 4 expressions with local error:

0.1b
(* (/ (+ (pow (+ 1.0 (/ i n)) (/ n 2)) (sqrt 1.0)) i) (* (- (pow (+ 1.0 (/ i n)) (/ n 2)) (sqrt 1.0)) n))
1.9b
(- (pow (+ 1.0 (/ i n)) (/ n 2)) (sqrt 1.0))
5.6b
(pow (+ 1.0 (/ i n)) (/ n 2))
5.6b
(pow (+ 1.0 (/ i n)) (/ n 2))

rewrite756.0ms

Algorithm
rewrite-expression-head
Rules
84×*-un-lft-identity
68×add-sqr-sqrt
58×add-cube-cbrt
48×prod-diff
38×unpow-prod-down
30×times-frac
27×sqrt-prod
26×pow-unpow
18×add-exp-log
16×associate-*l* add-cbrt-cube
12×distribute-lft-out
11×pow1 sqr-pow
fma-neg
prod-exp cbrt-unprod add-log-exp difference-of-squares
associate-*l/
expm1-log1p-u log1p-expm1-u
flip3-- pow-prod-down flip-- div-inv
cbrt-undiv frac-times pow-to-exp pow-pow associate-*r/ div-exp pow-exp
sub-neg diff-log associate-*r* *-commutative distribute-lft-out--
Counts
4 → 179
Calls
4 calls:
595.0ms
(* (/ (+ (pow (+ 1.0 (/ i n)) (/ n 2)) (sqrt 1.0)) i) (* (- (pow (+ 1.0 (/ i n)) (/ n 2)) (sqrt 1.0)) n))
130.0ms
(- (pow (+ 1.0 (/ i n)) (/ n 2)) (sqrt 1.0))
12.0ms
(pow (+ 1.0 (/ i n)) (/ n 2))
12.0ms
(pow (+ 1.0 (/ i n)) (/ n 2))

series1.3s

Counts
4 → 12
Calls
4 calls:
608.0ms
(* (/ (+ (pow (+ 1.0 (/ i n)) (/ n 2)) (sqrt 1.0)) i) (* (- (pow (+ 1.0 (/ i n)) (/ n 2)) (sqrt 1.0)) n))
259.0ms
(- (pow (+ 1.0 (/ i n)) (/ n 2)) (sqrt 1.0))
229.0ms
(pow (+ 1.0 (/ i n)) (/ n 2))
234.0ms
(pow (+ 1.0 (/ i n)) (/ n 2))

simplify100.0ms

Algorithm
egg-herbie
Counts
191 → 191
Iterations

Useful iterations: 2 (67.0ms)

IterNodesCost
06892685
127181980
250011895

prune477.0ms

Pruning

9 alts after pruning (9 fresh and 0 done)

Merged error: 11.9b

localize20.0ms

Local error

Found 3 expressions with local error:

0.0b
(* 100.0 (* (/ (+ (pow (+ 1.0 (/ i n)) (/ n 2)) (sqrt 1.0)) i) (* (fma i 0.5 (- (fma 1/2 (* (log 1.0) n) 1) (sqrt 1.0))) n)))
5.6b
(pow (+ 1.0 (/ i n)) (/ n 2))
13.7b
(* (/ (+ (pow (+ 1.0 (/ i n)) (/ n 2)) (sqrt 1.0)) i) (* (fma i 0.5 (- (fma 1/2 (* (log 1.0) n) 1) (sqrt 1.0))) n))

rewrite427.0ms

Algorithm
rewrite-expression-head
Rules
34×add-exp-log
33×add-cbrt-cube
28×*-un-lft-identity
21×times-frac
20×add-sqr-sqrt add-cube-cbrt
19×associate-*l*
18×pow1
17×prod-exp cbrt-unprod
13×pow-unpow
pow-prod-down
cbrt-undiv unpow-prod-down div-exp distribute-lft-out
expm1-log1p-u log1p-expm1-u add-log-exp
associate-*r* associate-*l/ *-commutative div-inv
pow-to-exp pow-pow associate-*r/ pow-exp sqr-pow
Counts
3 → 96
Calls
3 calls:
178.0ms
(* 100.0 (* (/ (+ (pow (+ 1.0 (/ i n)) (/ n 2)) (sqrt 1.0)) i) (* (fma i 0.5 (- (fma 1/2 (* (log 1.0) n) 1) (sqrt 1.0))) n)))
12.0ms
(pow (+ 1.0 (/ i n)) (/ n 2))
234.0ms
(* (/ (+ (pow (+ 1.0 (/ i n)) (/ n 2)) (sqrt 1.0)) i) (* (fma i 0.5 (- (fma 1/2 (* (log 1.0) n) 1) (sqrt 1.0))) n))

series1.4s

Counts
3 → 9
Calls
3 calls:
594.0ms
(* 100.0 (* (/ (+ (pow (+ 1.0 (/ i n)) (/ n 2)) (sqrt 1.0)) i) (* (fma i 0.5 (- (fma 1/2 (* (log 1.0) n) 1) (sqrt 1.0))) n)))
230.0ms
(pow (+ 1.0 (/ i n)) (/ n 2))
533.0ms
(* (/ (+ (pow (+ 1.0 (/ i n)) (/ n 2)) (sqrt 1.0)) i) (* (fma i 0.5 (- (fma 1/2 (* (log 1.0) n) 1) (sqrt 1.0))) n))

simplify91.0ms

Algorithm
egg-herbie
Counts
105 → 105
Iterations

Useful iterations: 2 (72.0ms)

IterNodesCost
08101919
133201552
250011542

prune420.0ms

Pruning

17 alts after pruning (17 fresh and 0 done)

Merged error: 11.8b

localize25.0ms

Local error

Found 3 expressions with local error:

0.0b
(* 100.0 (* (* (/ (+ (pow (+ 1.0 (/ i n)) (/ n 2)) (sqrt 1.0)) i) (fma i 0.5 (- (fma 1/2 (* (log 1.0) n) 1) (sqrt 1.0)))) n))
0.1b
(* (/ (+ (pow (+ 1.0 (/ i n)) (/ n 2)) (sqrt 1.0)) i) (fma i 0.5 (- (fma 1/2 (* (log 1.0) n) 1) (sqrt 1.0))))
5.6b
(pow (+ 1.0 (/ i n)) (/ n 2))

rewrite826.0ms

Algorithm
rewrite-expression-head
Rules
29×*-un-lft-identity
26×add-sqr-sqrt
23×add-exp-log
22×times-frac add-cbrt-cube
21×add-cube-cbrt
19×associate-*l*
15×pow1
13×pow-unpow
11×prod-exp cbrt-unprod
pow-prod-down
unpow-prod-down associate-*r* distribute-lft-out
expm1-log1p-u associate-*l/ log1p-expm1-u add-log-exp
cbrt-undiv div-exp *-commutative fma-udef div-inv unswap-sqr
distribute-rgt-in pow-to-exp pow-pow distribute-lft-in associate-*r/ pow-exp sqr-pow
Counts
3 → 95
Calls
3 calls:
582.0ms
(* 100.0 (* (* (/ (+ (pow (+ 1.0 (/ i n)) (/ n 2)) (sqrt 1.0)) i) (fma i 0.5 (- (fma 1/2 (* (log 1.0) n) 1) (sqrt 1.0)))) n))
228.0ms
(* (/ (+ (pow (+ 1.0 (/ i n)) (/ n 2)) (sqrt 1.0)) i) (fma i 0.5 (- (fma 1/2 (* (log 1.0) n) 1) (sqrt 1.0))))
12.0ms
(pow (+ 1.0 (/ i n)) (/ n 2))

series1.2s

Counts
3 → 9
Calls
3 calls:
577.0ms
(* 100.0 (* (* (/ (+ (pow (+ 1.0 (/ i n)) (/ n 2)) (sqrt 1.0)) i) (fma i 0.5 (- (fma 1/2 (* (log 1.0) n) 1) (sqrt 1.0)))) n))
398.0ms
(* (/ (+ (pow (+ 1.0 (/ i n)) (/ n 2)) (sqrt 1.0)) i) (fma i 0.5 (- (fma 1/2 (* (log 1.0) n) 1) (sqrt 1.0))))
227.0ms
(pow (+ 1.0 (/ i n)) (/ n 2))

simplify92.0ms

Algorithm
egg-herbie
Counts
104 → 104
Iterations

Useful iterations: 2 (74.0ms)

IterNodesCost
08411801
134601539
250011535

prune380.0ms

Pruning

19 alts after pruning (19 fresh and 0 done)

Merged error: 11.8b

regimes432.0ms

Accuracy

52.3% (10.5b remaining)

Error of 21.6b against oracle of 11.1b and baseline of 33.1b

bsearch225.0ms

Steps
ItersRangePoint
9
1.560051953962792e-13
3.9524390088012255e-07
5.88981601408303e-08
9
-6.956871504263554e-09
-9.165072888214816e-14
-6.8977356701701615e-09

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04941
14941

end0.0ms

sample5.0s

Algorithm
intervals
Results
2.0s1005×body2560valid
1.8s2464×body1280valid
500.0ms1630×body640valid
152.0ms854×body320valid
137.0ms3054×body80valid
74.0ms2270×body80nan
49.0ms460×body160valid