Details

Time bar (total: 3.6s)

sample87.0ms

Algorithm
intervals
Results
45.0ms111×body1280valid
21.0ms84×body640valid
9.0ms53×body320valid
3.0ms256×pre80true
1.0msbody160valid

simplify154.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0188
1438
21238
32128
43748
54968
67158
79678
811218
912218
1014818
1116598
1220398
1323768
1432098
1550018

prune3.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 63.0b

Counts
2 → 1

localize10.0ms

Local error

Found 3 expressions with local error:

0.3b
(* n (log n))
0.3b
(* (+ n 1.0) (log (+ n 1.0)))
3.7b
(- (* (+ n 1.0) (log (+ n 1.0))) (* n (log n)))

rewrite23.0ms

Algorithm
rewrite-expression-head
Rules
28×log-prod
25×*-un-lft-identity
19×add-sqr-sqrt
15×add-cube-cbrt
14×distribute-rgt-in distribute-lft-in
pow1
associate-*r* associate--l+
add-exp-log associate-*l* add-cbrt-cube
associate--r+
distribute-lft-out add-log-exp
pow-prod-down associate-*l/ prod-exp log-pow *-commutative cbrt-unprod unswap-sqr
sub-neg flip3-- flip3-+ diff-log flip-- flip-+
Counts
3 → 81
Calls
3 calls:
4.0ms
(* n (log n))
8.0ms
(* (+ n 1.0) (log (+ n 1.0)))
8.0ms
(- (* (+ n 1.0) (log (+ n 1.0))) (* n (log n)))

series34.0ms

Counts
3 → 9
Calls
3 calls:
18.0ms
(* n (log n))
5.0ms
(* (+ n 1.0) (log (+ n 1.0)))
11.0ms
(- (* (+ n 1.0) (log (+ n 1.0))) (* n (log n)))

simplify53.0ms

Algorithm
egg-herbie
Counts
90 → 90
Iterations

Useful iterations: 2 (45.0ms)

IterNodesCost
0439660
11891592
25001573

prune129.0ms

Filtered
63 candidates to 90 candidates (-42.9%)
Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New89190
Fresh000
Picked101
Done000
Total90191

Merged error: 0.0b

Counts
91 → 1

localize18.0ms

Local error

Found 4 expressions with local error:

0.0b
(- (- (+ (* 1.0 (log 1)) (+ (* 0.5 (/ 1 n)) 1.0)) (+ (* 1.0 (log (/ 1 n))) (* 0.16666666666666669 (/ 1 (pow n 2))))) 1.0)
0.0b
(* 0.5 (/ 1 n))
0.1b
(* 0.16666666666666669 (/ 1 (pow n 2)))
1.0b
(/ 1 (pow n 2))

rewrite48.0ms

Algorithm
rewrite-expression-head
Rules
72×add-sqr-sqrt
67×times-frac
55×*-un-lft-identity
45×add-cube-cbrt
42×add-exp-log
41×associate-*r*
33×add-log-exp
23×unpow-prod-down
16×add-cbrt-cube
14×div-exp prod-exp
13×diff-log
12×unswap-sqr
sum-log unpow2 sqr-pow
pow1 associate-/r*
rec-exp 1-exp
pow-to-exp associate-*l* pow-exp
associate--l+ cbrt-unprod
cbrt-undiv div-inv associate-/l* distribute-lft-out--
sub-neg associate-*r/ pow-prod-down un-div-inv *-commutative
associate--l- flip3-- pow-flip frac-2neg clear-num flip-- inv-pow difference-of-squares
Counts
4 → 181
Calls
4 calls:
16.0ms
(- (- (+ (* 1.0 (log 1)) (+ (* 0.5 (/ 1 n)) 1.0)) (+ (* 1.0 (log (/ 1 n))) (* 0.16666666666666669 (/ 1 (pow n 2))))) 1.0)
7.0ms
(* 0.5 (/ 1 n))
13.0ms
(* 0.16666666666666669 (/ 1 (pow n 2)))
5.0ms
(/ 1 (pow n 2))

series14.0ms

Counts
4 → 12
Calls
4 calls:
7.0ms
(- (- (+ (* 1.0 (log 1)) (+ (* 0.5 (/ 1 n)) 1.0)) (+ (* 1.0 (log (/ 1 n))) (* 0.16666666666666669 (/ 1 (pow n 2))))) 1.0)
2.0ms
(* 0.5 (/ 1 n))
3.0ms
(* 0.16666666666666669 (/ 1 (pow n 2)))
2.0ms
(/ 1 (pow n 2))

simplify69.0ms

Algorithm
egg-herbie
Counts
193 → 193
Iterations

Useful iterations: 2 (54.0ms)

IterNodesCost
06651216
12806990
25001886

prune299.0ms

Filtered
102 candidates to 193 candidates (-89.2%)
Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New1921193
Fresh000
Picked101
Done000
Total1931194

Merged error: 0b

Counts
194 → 1

localize10.0ms

Local error

Found 2 expressions with local error:

0.0b
(- (/ 0.5 n) (/ 0.16666666666666669 (pow n 2)))
0.9b
(/ 0.16666666666666669 (pow n 2))

rewrite30.0ms

Algorithm
rewrite-expression-head
Rules
48×add-sqr-sqrt
39×times-frac
25×*-un-lft-identity
19×add-cube-cbrt
14×unpow-prod-down
10×difference-of-squares
associate-/r*
add-exp-log
unpow2 sqr-pow
add-cbrt-cube add-log-exp
div-exp associate-/l*
pow1 distribute-lft-out--
cbrt-undiv pow-to-exp sub-neg flip3-- frac-2neg diff-log pow-exp clear-num frac-sub flip-- div-inv
Counts
2 → 74
Calls
2 calls:
21.0ms
(- (/ 0.5 n) (/ 0.16666666666666669 (pow n 2)))
7.0ms
(/ 0.16666666666666669 (pow n 2))

series9.0ms

Counts
2 → 6
Calls
2 calls:
6.0ms
(- (/ 0.5 n) (/ 0.16666666666666669 (pow n 2)))
3.0ms
(/ 0.16666666666666669 (pow n 2))

simplify33.0ms

Algorithm
egg-herbie
Counts
80 → 80
Iterations

Useful iterations: 2 (25.0ms)

IterNodesCost
0280492
1903446
25001435

prune97.0ms

Filtered
51 candidates to 80 candidates (-56.9%)
Pruning

1 alts after pruning (0 fresh and 1 done)

PrunedKeptTotal
New80080
Fresh000
Picked011
Done000
Total80181

Merged error: 0b

Counts
81 → 1

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0147
1147

end0.0ms

sample2.5s

Algorithm
intervals
Results
1.3s3637×body1280valid
657.0ms2643×body640valid
219.0ms1258×body320valid
87.0ms8000×pre80true
53.0ms462×body160valid

Profiling

Loading profile data...