Details

Time bar (total: 5.8s)

sample40.0ms

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

simplify49.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 3 (8.0ms)

IterNodesCost
05016
19316
220016
351715
4189315
5500115

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

rewrite640.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:
577.0ms
(- (- (pow (- (/ (+ m n) 2.0) M) 2.0)) (- l (fabs (- m n))))
14.0ms
(* K (+ m n))
32.0ms
(pow (- (/ (+ m n) 2.0) M) 2.0)
15.0ms
(cos (- (/ (* K (+ m n)) 2.0) M))

series523.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))
259.0ms
(pow (- (/ (+ m n) 2.0) M) 2.0)
55.0ms
(cos (- (/ (* K (+ m n)) 2.0) M))

simplify44.0ms

Algorithm
egg-herbie
Counts
89 → 89
Iterations

Useful iterations: 2 (36.0ms)

IterNodesCost
0435667
11447621
25001620

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

rewrite611.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:
577.0ms
(- (- (pow (- (/ (+ m n) 2.0) M) 2.0)) (- l (fabs (- m n))))
32.0ms
(pow (- (/ (+ m n) 2.0) M) 2.0)

series444.0ms

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

simplify82.0ms

Algorithm
egg-herbie
Counts
50 → 50
Iterations

Useful iterations: 3 (76.0ms)

IterNodesCost
0277469
1798444
23368435
35001432

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

rewrite50.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))
18.0ms
(cos (- (/ (* K (+ m n)) 2.0) M))

series302.0ms

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

simplify124.0ms

Algorithm
egg-herbie
Counts
53 → 53
Iterations

Useful iterations: 6 (118.0ms)

IterNodesCost
083464
1123418
2183416
3334416
41040416
53218416
65001397

prune308.0ms

Pruning

3 alts after pruning (2 fresh and 1 done)

Merged error: 0.6b

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

rewrite62.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:
15.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))

series217.0ms

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

simplify116.0ms

Algorithm
egg-herbie
Counts
52 → 52
Iterations

Useful iterations: 1 (4.0ms)

IterNodesCost
066448
1100404
2140404
3178404
4236404
5363404
6913404
72562404
85001404

prune346.0ms

Pruning

3 alts after pruning (1 fresh and 2 done)

Merged error: 0.6b

regimes137.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
637.0ms8103×body80valid
57.0ms158×body640valid
51.0ms106×body1280valid
28.0ms104×body320valid
8.0ms46×body160valid
3.0msbody2560valid