Details

Time bar (total: 2.9s)

sample69.0ms

Algorithm
intervals
Results
36.0ms260×body80valid
4.0msbody1280valid
2.0msbody640valid
0.0msbody320valid

simplify54.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 3 (12.0ms)

IterNodesCost
05016
19516
221116
355315
4197415
5500215

prune8.0ms

Filtered
1 candidates to 1 candidates (100.0%)
Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New101
Fresh011
Picked000
Done000
Total112

Merged error: 13.5b

Counts
2 → 1

localize21.0ms

Local error

Found 4 expressions with local error:

0.0b
(- (- (pow (- (/ (+ m n) 2.0) M) 2.0)) (- l (fabs (- m n))))
0.0b
(* K (+ m n))
0.0b
(pow (- (/ (+ m n) 2.0) M) 2.0)
36.1b
(cos (- (/ (* K (+ m n)) 2.0) M))

rewrite25.0ms

Algorithm
rewrite-expression-head
Rules
sub-neg fma-neg sqr-pow
+-commutative distribute-rgt-in cos-sum distribute-lft-in associate-*r/ associate--r+
associate--l- neg-sub0 distribute-lft-neg-in cos-diff pow-to-exp neg-mul-1 flip3-- distribute-rgt-neg-in flip3-+ *-commutative flip-- flip-+ associate--r-
Counts
4 → 23
Calls
4 calls:
10.0ms
(- (- (pow (- (/ (+ m n) 2.0) M) 2.0)) (- l (fabs (- m n))))
3.0ms
(* K (+ m n))
4.0ms
(pow (- (/ (+ m n) 2.0) M) 2.0)
7.0ms
(cos (- (/ (* K (+ m n)) 2.0) M))

series559.0ms

Counts
4 → 12
Calls
4 calls:
185.0ms
(- (- (pow (- (/ (+ m n) 2.0) M) 2.0)) (- l (fabs (- m n))))
24.0ms
(* K (+ m n))
299.0ms
(pow (- (/ (+ m n) 2.0) M) 2.0)
50.0ms
(cos (- (/ (* K (+ m n)) 2.0) M))

simplify56.0ms

Algorithm
egg-herbie
Counts
35 → 35
Iterations

Useful iterations: 3 (51.0ms)

IterNodesCost
0251240
1641229
22180217
35002212

prune131.0ms

Filtered
35 candidates to 26 candidates (74.3%)
Pruning

2 alts after pruning (1 fresh and 1 done)

PrunedKeptTotal
New34135
Fresh000
Picked011
Done000
Total34236

Merged error: 0.6b

Counts
36 → 2

localize15.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)

rewrite12.0ms

Algorithm
rewrite-expression-head
Rules
fma-neg sqr-pow
sub-neg associate--r+
associate--l- neg-sub0 distribute-lft-neg-in pow-to-exp neg-mul-1 flip3-- distribute-rgt-neg-in flip-- associate--r-
Counts
2 → 13
Calls
2 calls:
8.0ms
(- (- (pow (- (/ (+ m n) 2.0) M) 2.0)) (- l (fabs (- m n))))
4.0ms
(pow (- (/ (+ m n) 2.0) M) 2.0)

series450.0ms

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

simplify59.0ms

Algorithm
egg-herbie
Counts
19 → 19
Iterations

Useful iterations: 3 (49.0ms)

IterNodesCost
0177166
1456155
21693143
35001136

prune78.0ms

Filtered
19 candidates to 16 candidates (84.2%)
Pruning

2 alts after pruning (0 fresh and 2 done)

PrunedKeptTotal
New19019
Fresh000
Picked011
Done011
Total19221

Merged error: 0.6b

Counts
21 → 2

regimes126.0ms

Accuracy

0% (0.2b remaining)

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

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02110
12310
22310

end0.0ms

sample1.2s

Algorithm
intervals
Results
728.0ms8087×body80valid
69.0ms132×body1280valid
54.0ms145×body640valid
29.0ms108×body320valid
8.0ms43×body160valid
1.0msbody2560valid