Details

Time bar (total: 5.9s)

sample41.0ms

Algorithm
intervals
Results
20.0ms260×body80valid
1.0msbody640valid
1.0msbody320valid
0.0msbody1280valid
0.0msbody160valid

simplify51.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 3 (9.0ms)

IterNodesCost
05016
19316
220016
351715
4189315
5500115

prune10.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 14.5b

localize27.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)
34.7b
(cos (- (/ (* K (+ m n)) 2.0) M))

rewrite637.0ms

Algorithm
rewrite-expression-head
Rules
22×*-un-lft-identity
17×add-sqr-sqrt
14×add-log-exp
add-cube-cbrt
pow1 add-exp-log distribute-lft-out--
unpow-prod-down diff-log add-cbrt-cube
associate-*r*
sub-neg pow-unpow associate-*l* difference-of-squares
cos-sum distribute-rgt-neg-in associate-*r/ neg-log associate--r+
associate--l- neg-sub0 distribute-rgt-in cos-diff pow-to-exp flip3-- pow-pow distribute-lft-in flip3-+ times-frac pow-prod-down pow-exp prod-exp *-commutative flip-- cbrt-unprod flip-+ distribute-lft-out associate--r- unswap-sqr sqr-pow
Counts
4 → 77
Calls
4 calls:
574.0ms
(- (- (pow (- (/ (+ m n) 2.0) M) 2.0)) (- l (fabs (- m n))))
13.0ms
(* K (+ m n))
32.0ms
(pow (- (/ (+ m n) 2.0) M) 2.0)
15.0ms
(cos (- (/ (* K (+ m n)) 2.0) M))

series537.0ms

Counts
4 → 12
Calls
4 calls:
187.0ms
(- (- (pow (- (/ (+ m n) 2.0) M) 2.0)) (- l (fabs (- m n))))
25.0ms
(* K (+ m n))
267.0ms
(pow (- (/ (+ m n) 2.0) M) 2.0)
58.0ms
(cos (- (/ (* K (+ m n)) 2.0) M))

simplify45.0ms

Algorithm
egg-herbie
Counts
89 → 89
Iterations

Useful iterations: 2 (37.0ms)

IterNodesCost
0435667
11447621
25001620

prune362.0ms

Pruning

3 alts after pruning (3 fresh and 0 done)

Merged error: 0.6b

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

rewrite608.0ms

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

series452.0ms

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

simplify85.0ms

Algorithm
egg-herbie
Counts
50 → 50
Iterations

Useful iterations: 3 (79.0ms)

IterNodesCost
0277469
1798444
23368435
35001432

prune172.0ms

Pruning

3 alts after pruning (2 fresh and 1 done)

Merged error: 0.6b

localize28.0ms

Local error

Found 4 expressions with local error:

0.5b
(cbrt (cos (- (/ (* K (+ m n)) 2.0) M)))
34.7b
(cos (- (/ (* K (+ m n)) 2.0) M))
34.7b
(cos (- (/ (* K (+ m n)) 2.0) M))
34.7b
(cos (- (/ (* K (+ m n)) 2.0) M))

rewrite49.0ms

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

series311.0ms

Counts
4 → 12
Calls
4 calls:
142.0ms
(cbrt (cos (- (/ (* K (+ m n)) 2.0) M)))
57.0ms
(cos (- (/ (* K (+ m n)) 2.0) M))
54.0ms
(cos (- (/ (* K (+ m n)) 2.0) M))
57.0ms
(cos (- (/ (* K (+ m n)) 2.0) M))

simplify132.0ms

Algorithm
egg-herbie
Counts
53 → 53
Iterations

Useful iterations: 6 (123.0ms)

IterNodesCost
083464
1123418
2183416
3334416
41040416
53218416
65001397

prune313.0ms

Pruning

3 alts after pruning (2 fresh and 1 done)

Merged error: 0.6b

localize34.0ms

Local error

Found 4 expressions with local error:

34.7b
(cos (- (/ (* K (+ m n)) 2.0) M))
34.7b
(cos (- (/ (* K (+ m n)) 2.0) M))
34.7b
(cos (- (/ (* K (+ m n)) 2.0) M))
34.7b
(cos (- (/ (* K (+ m n)) 2.0) M))

rewrite63.0ms

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

series221.0ms

Counts
4 → 12
Calls
4 calls:
54.0ms
(cos (- (/ (* K (+ m n)) 2.0) M))
56.0ms
(cos (- (/ (* K (+ m n)) 2.0) M))
56.0ms
(cos (- (/ (* K (+ m n)) 2.0) M))
54.0ms
(cos (- (/ (* K (+ m n)) 2.0) M))

simplify117.0ms

Algorithm
egg-herbie
Counts
52 → 52
Iterations

Useful iterations: 1 (4.0ms)

IterNodesCost
066448
1100404
2140404
3178404
4236404
5363404
6913404
72562404
85001404

prune351.0ms

Pruning

3 alts after pruning (2 fresh and 1 done)

Merged error: 0.6b

regimes144.0ms

Accuracy

0% (0.2b remaining)

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

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02110
12310
22310

end0.0ms

sample1.1s

Algorithm
intervals
Results
635.0ms8103×body80valid
53.0ms106×body1280valid
53.0ms158×body640valid
25.0ms104×body320valid
7.0ms46×body160valid
3.0msbody2560valid