Details

Time bar (total: 12.2s)

sample171.0ms

Algorithm
intervals
Results
66.0ms36×body2560valid
61.0ms85×body1280valid
16.0ms52×body640valid
4.0ms93×body80valid
4.0ms24×body320valid
4.0msbody5120valid
2.0ms75×body80nan
2.0ms18×body160valid

simplify40.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0257
1607
21457
33647
412487
550017

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 47.0b

localize12.0ms

Local error

Found 4 expressions with local error:

0.1b
(* 100.0 (/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n)))
2.8b
(- (pow (+ 1.0 (/ i n)) n) 1.0)
6.1b
(pow (+ 1.0 (/ i n)) n)
11.7b
(/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n))

rewrite86.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:
31.0ms
(* 100.0 (/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n)))
11.0ms
(- (pow (+ 1.0 (/ i n)) n) 1.0)
6.0ms
(pow (+ 1.0 (/ i n)) n)
17.0ms
(/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n))

series1.2s

Counts
4 → 12
Calls
4 calls:
384.0ms
(* 100.0 (/ (- (pow (+ 1.0 (/ i n)) n) 1.0) (/ i n)))
264.0ms
(- (pow (+ 1.0 (/ i n)) n) 1.0)
221.0ms
(pow (+ 1.0 (/ i n)) n)
350.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

prune878.0ms

Pruning

9 alts after pruning (9 fresh and 0 done)

Merged error: 22.3b

localize15.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)))))
0.1b
(* 100.0 (/ (fma i 1.0 (- (fma 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))
18.1b
(/ (fma i 1.0 (- (fma 0.5 (pow i 2) (* (log 1.0) n)) (* 0.5 (* (pow i 2) (log 1.0))))) (/ i n))

rewrite34.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
pow1 unswap-sqr
cbrt-undiv log-prod div-exp prod-exp
expm1-log1p-u unpow-prod-down cbrt-unprod log1p-expm1-u add-log-exp
distribute-rgt-in distribute-lft-in associate-/l*
associate-/r/ *-commutative unpow2 sqr-pow
pow-to-exp frac-2neg associate-*r/ pow-prod-down pow-exp clear-num log-pow fma-udef
Counts
4 → 186
Calls
4 calls:
1.0ms
(fma i 1.0 (- (fma 0.5 (pow i 2) (* (log 1.0) n)) (* 0.5 (* (pow i 2) (log 1.0)))))
14.0ms
(* 100.0 (/ (fma i 1.0 (- (fma 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))
6.0ms
(/ (fma i 1.0 (- (fma 0.5 (pow i 2) (* (log 1.0) n)) (* 0.5 (* (pow i 2) (log 1.0))))) (/ i n))

series679.0ms

Counts
4 → 12
Calls
4 calls:
99.0ms
(fma i 1.0 (- (fma 0.5 (pow i 2) (* (log 1.0) n)) (* 0.5 (* (pow i 2) (log 1.0)))))
228.0ms
(* 100.0 (/ (fma i 1.0 (- (fma 0.5 (pow i 2) (* (log 1.0) n)) (* 0.5 (* (pow i 2) (log 1.0))))) (/ i n)))
146.0ms
(* (pow i 2) (log 1.0))
205.0ms
(/ (fma i 1.0 (- (fma 0.5 (pow i 2) (* (log 1.0) n)) (* 0.5 (* (pow i 2) (log 1.0))))) (/ i n))

simplify115.0ms

Algorithm
egg-herbie
Counts
198 → 198
Iterations

Useful iterations: 1 (19.0ms)

IterNodesCost
07343209
137502968
250012968

prune750.0ms

Pruning

20 alts after pruning (20 fresh and 0 done)

Merged error: 10.4b

localize15.0ms

Local error

Found 4 expressions with local error:

0.0b
(* 100.0 (/ (fma i 1.0 (- (fma 0.5 (pow i 2) (* (log 1.0) n)) (* 0.5 (* (pow i 2) (log 1.0))))) i))
0.3b
(* (* 100.0 (/ (fma i 1.0 (- (fma 0.5 (pow i 2) (* (log 1.0) n)) (* 0.5 (* (pow i 2) (log 1.0))))) i)) n)
10.7b
(/ (fma i 1.0 (- (fma 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))

rewrite28.0ms

Algorithm
rewrite-expression-head
Rules
37×add-sqr-sqrt
26×add-cube-cbrt *-un-lft-identity
25×add-exp-log
22×add-cbrt-cube
20×associate-*r*
19×times-frac
12×pow1 associate-*l*
10×prod-exp
cbrt-unprod
log-prod unswap-sqr
expm1-log1p-u unpow-prod-down pow-prod-down log1p-expm1-u add-log-exp
cbrt-undiv distribute-rgt-in distribute-lft-in div-exp associate-/r* *-commutative associate-/l*
associate-*r/ div-inv unpow2 sqr-pow
pow-to-exp frac-2neg associate-*l/ pow-exp clear-num log-pow
Counts
4 → 122
Calls
4 calls:
6.0ms
(* 100.0 (/ (fma i 1.0 (- (fma 0.5 (pow i 2) (* (log 1.0) n)) (* 0.5 (* (pow i 2) (log 1.0))))) i))
6.0ms
(* (* 100.0 (/ (fma i 1.0 (- (fma 0.5 (pow i 2) (* (log 1.0) n)) (* 0.5 (* (pow i 2) (log 1.0))))) i)) n)
3.0ms
(/ (fma i 1.0 (- (fma 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))

series677.0ms

Counts
4 → 12
Calls
4 calls:
157.0ms
(* 100.0 (/ (fma i 1.0 (- (fma 0.5 (pow i 2) (* (log 1.0) n)) (* 0.5 (* (pow i 2) (log 1.0))))) i))
230.0ms
(* (* 100.0 (/ (fma i 1.0 (- (fma 0.5 (pow i 2) (* (log 1.0) n)) (* 0.5 (* (pow i 2) (log 1.0))))) i)) n)
152.0ms
(/ (fma i 1.0 (- (fma 0.5 (pow i 2) (* (log 1.0) n)) (* 0.5 (* (pow i 2) (log 1.0))))) i)
138.0ms
(* (pow i 2) (log 1.0))

simplify80.0ms

Algorithm
egg-herbie
Counts
134 → 134
Iterations

Useful iterations: 2 (57.0ms)

IterNodesCost
04881787
123721525
250021522

prune456.0ms

Pruning

20 alts after pruning (19 fresh and 1 done)

Merged error: 10.4b

localize21.0ms

Local error

Found 4 expressions with local error:

10.7b
(/ (fma i 1.0 (- (fma 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))
11.4b
(* (pow i 2) (log 1.0))
11.4b
(* (pow i 2) (log 1.0))

rewrite30.0ms

Algorithm
rewrite-expression-head
Rules
45×add-sqr-sqrt
27×add-cube-cbrt *-un-lft-identity
24×associate-*l*
21×add-exp-log
18×log-prod
12×unpow-prod-down associate-*r* add-cbrt-cube unswap-sqr
distribute-rgt-in distribute-lft-in times-frac prod-exp
pow1
unpow2 sqr-pow
expm1-log1p-u log1p-expm1-u add-log-exp
pow-to-exp pow-exp associate-/r* log-pow *-commutative cbrt-unprod associate-/l*
cbrt-undiv frac-2neg div-exp clear-num div-inv
Counts
4 → 137
Calls
4 calls:
3.0ms
(/ (fma i 1.0 (- (fma 0.5 (pow i 2) (* (log 1.0) n)) (* 0.5 (* (pow i 2) (log 1.0))))) i)
10.0ms
(* (pow i 2) (log 1.0))
6.0ms
(* (pow i 2) (log 1.0))
6.0ms
(* (pow i 2) (log 1.0))

series573.0ms

Counts
4 → 12
Calls
4 calls:
148.0ms
(/ (fma i 1.0 (- (fma 0.5 (pow i 2) (* (log 1.0) n)) (* 0.5 (* (pow i 2) (log 1.0))))) i)
143.0ms
(* (pow i 2) (log 1.0))
136.0ms
(* (pow i 2) (log 1.0))
146.0ms
(* (pow i 2) (log 1.0))

simplify40.0ms

Algorithm
egg-herbie
Counts
149 → 149
Iterations

Useful iterations: 2 (27.0ms)

IterNodesCost
02381134
18681013
25001998

prune594.0ms

Pruning

20 alts after pruning (18 fresh and 2 done)

Merged error: 10.4b

regimes423.0ms

Accuracy

66.2% (6.0b remaining)

Error of 17.3b against oracle of 11.3b and baseline of 29.1b

bsearch108.0ms

Steps
ItersRangePoint
6
2.289162948056721e-13
9.558161037350472e-13
9.412915699220923e-13
4
-0.041603525395973645
-0.02085603301560968
-0.02815481255422397

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03920
13920

end0.0ms

sample5.1s

Algorithm
intervals
Results
2.1s2976×body1280valid
1.8s968×body2560valid
550.0ms1793×body640valid
151.0ms872×body320valid
112.0ms2411×body80valid
75.0ms2255×body80nan
44.0ms427×body160valid
31.0msbody5120valid