Details

Time bar (total: 3.4s)

sample52.0ms

Algorithm
intervals
Results
25.0ms256×body80valid
2.0msbody320valid
2.0msbody1280valid
1.0msbody640valid
0.0msbody160valid

simplify50.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 3 (7.0ms)

IterNodesCost
05016
19316
220016
351715
4189315
5500115

prune13.0ms

Filtered
1 candidates to 1 candidates (0.0%)
Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New011
Fresh101
Picked000
Done000
Total112

Merged error: 18.1b

Counts
2 → 1

localize26.0ms

Local error

Found 4 expressions with local error:

0.0b
(pow (- (/ (+ m n) 2.0) M) 2.0)
0.0b
(* K (+ m n))
0.2b
(/ (* K (+ m n)) 2.0)
38.0b
(cos (- (/ (* K (+ m n)) 2.0) M))

rewrite33.0ms

Algorithm
rewrite-expression-head
Rules
17×add-sqr-sqrt
14×*-un-lft-identity
12×add-exp-log
11×add-cbrt-cube
10×add-cube-cbrt
pow1
unpow-prod-down
times-frac associate-*r/ associate-*r* add-log-exp
pow-unpow associate-*l* associate-/r*
cbrt-undiv cos-sum flip3-+ div-exp prod-exp cbrt-unprod flip-+ associate-/l/ difference-of-squares
distribute-rgt-in cos-diff pow-to-exp sub-neg pow-pow frac-2neg distribute-lft-in pow-prod-down pow-exp clear-num *-commutative div-inv distribute-lft-out associate-/l* distribute-lft-out-- unswap-sqr sqr-pow
Counts
4 → 76
Calls
4 calls:
10.0ms
(pow (- (/ (+ m n) 2.0) M) 2.0)
6.0ms
(* K (+ m n))
7.0ms
(/ (* K (+ m n)) 2.0)
8.0ms
(cos (- (/ (* K (+ m n)) 2.0) M))

series78.0ms

Counts
4 → 12
Calls
4 calls:
43.0ms
(pow (- (/ (+ m n) 2.0) M) 2.0)
6.0ms
(* K (+ m n))
8.0ms
(/ (* K (+ m n)) 2.0)
21.0ms
(cos (- (/ (* K (+ m n)) 2.0) M))

simplify50.0ms

Algorithm
egg-herbie
Counts
88 → 88
Iterations

Useful iterations: 1 (11.0ms)

IterNodesCost
0425497
11759447
25001447

prune201.0ms

Filtered
63 candidates to 88 candidates (-39.7%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New82688
Fresh000
Picked101
Done000
Total83689

Merged error: 1.8b

Counts
89 → 6

localize14.0ms

Local error

Found 2 expressions with local error:

0.0b
(+ (pow (- (/ (+ m n) 2.0) M) 2.0) (- l (fabs (- m n))))
0.0b
(pow (- (/ (+ m n) 2.0) M) 2.0)

rewrite29.0ms

Algorithm
rewrite-expression-head
Rules
11×*-un-lft-identity
add-sqr-sqrt
add-log-exp
unpow-prod-down
add-cube-cbrt
pow1 add-exp-log pow-unpow
associate-+r+ sum-log add-cbrt-cube distribute-lft-out distribute-lft-out-- difference-of-squares
+-commutative pow-to-exp associate-+r- sub-neg pow-pow flip3-+ times-frac diff-log pow-exp flip-+ sqr-pow
Counts
2 → 37
Calls
2 calls:
17.0ms
(+ (pow (- (/ (+ m n) 2.0) M) 2.0) (- l (fabs (- m n))))
10.0ms
(pow (- (/ (+ m n) 2.0) M) 2.0)

series81.0ms

Counts
2 → 6
Calls
2 calls:
41.0ms
(+ (pow (- (/ (+ m n) 2.0) M) 2.0) (- l (fabs (- m n))))
40.0ms
(pow (- (/ (+ m n) 2.0) M) 2.0)

simplify83.0ms

Algorithm
egg-herbie
Counts
43 → 43
Iterations

Useful iterations: 3 (77.0ms)

IterNodesCost
0284378
1795361
23218353
35001350

prune101.0ms

Filtered
31 candidates to 43 candidates (-38.7%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New43043
Fresh055
Picked011
Done000
Total43649

Merged error: 1.8b

Counts
49 → 6

localize25.0ms

Local error

Found 4 expressions with local error:

1.0b
(cbrt 2.0)
1.0b
(cbrt 2.0)
1.0b
(cbrt 2.0)
38.0b
(cos (- (* (/ K (* (cbrt 2.0) (cbrt 2.0))) (/ (+ m n) (cbrt 2.0))) M))

rewrite17.0ms

Algorithm
rewrite-expression-head
Rules
cbrt-prod
add-sqr-sqrt add-cube-cbrt *-un-lft-identity
pow1 add-exp-log add-cbrt-cube add-log-exp
pow1/3
cos-sum
cos-diff sub-neg
Counts
4 → 43
Calls
4 calls:
1.0ms
(cbrt 2.0)
1.0ms
(cbrt 2.0)
1.0ms
(cbrt 2.0)
13.0ms
(cos (- (* (/ K (* (cbrt 2.0) (cbrt 2.0))) (/ (+ m n) (cbrt 2.0))) M))

series35.0ms

Counts
4 → 6
Calls
4 calls:
0.0ms
(cbrt 2.0)
0.0ms
(cbrt 2.0)
0.0ms
(cbrt 2.0)
35.0ms
(cos (- (* (/ K (* (cbrt 2.0) (cbrt 2.0))) (/ (+ m n) (cbrt 2.0))) M))

simplify75.0ms

Algorithm
egg-herbie
Counts
49 → 49
Iterations

Useful iterations: 2 (6.0ms)

IterNodesCost
082309
1139279
2219273
3308273
4458273
5812273
62301273
75001273

prune182.0ms

Filtered
40 candidates to 49 candidates (-22.5%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New45449
Fresh134
Picked101
Done011
Total47855

Merged error: 1.7b

Counts
55 → 8

localize29.0ms

Local error

Found 4 expressions with local error:

1.0b
(cbrt 2.0)
1.0b
(cbrt 2.0)
1.0b
(cbrt 2.0)
38.0b
(cos (- (* (/ K (* (cbrt 2.0) (cbrt 2.0))) (/ (+ m n) (cbrt 2.0))) M))

rewrite18.0ms

Algorithm
rewrite-expression-head
Rules
cbrt-prod
add-sqr-sqrt add-cube-cbrt *-un-lft-identity
pow1 add-exp-log add-cbrt-cube add-log-exp
pow1/3
cos-sum
cos-diff sub-neg
Counts
4 → 43
Calls
4 calls:
1.0ms
(cbrt 2.0)
1.0ms
(cbrt 2.0)
1.0ms
(cbrt 2.0)
14.0ms
(cos (- (* (/ K (* (cbrt 2.0) (cbrt 2.0))) (/ (+ m n) (cbrt 2.0))) M))

series36.0ms

Counts
4 → 6
Calls
4 calls:
0.0ms
(cbrt 2.0)
0.0ms
(cbrt 2.0)
0.0ms
(cbrt 2.0)
36.0ms
(cos (- (* (/ K (* (cbrt 2.0) (cbrt 2.0))) (/ (+ m n) (cbrt 2.0))) M))

simplify63.0ms

Algorithm
egg-herbie
Counts
49 → 49
Iterations

Useful iterations: 2 (7.0ms)

IterNodesCost
0113333
1207321
2353315
3662315
42013315
55001315

prune159.0ms

Filtered
42 candidates to 49 candidates (-16.7%)
Pruning

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New47249
Fresh246
Picked011
Done011
Total49857

Merged error: 1.7b

Counts
57 → 8

regimes518.0ms

Accuracy

0% (0.3b remaining)

Error of 1.4b against oracle of 1.1b and baseline of 1.4b

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02010
12010

end0.0ms

sample1.4s

Algorithm
intervals
Results
786.0ms8078×body80valid
68.0ms116×body1280valid
60.0ms139×body640valid
34.0ms112×body320valid
10.0ms50×body160valid
2.0msbody2560valid

Profiling

Loading profile data...