Details

Time bar (total: 4.9s)

sample47.0ms

Algorithm
intervals
Results
24.0ms263×body80valid
3.0msbody1280valid
2.0msbody640valid
1.0msbody320valid

simplify48.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 3 (8.0ms)

IterNodesCost
05016
19316
220016
351715
4189315
5500115

prune9.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.8b

Counts
2 → 1

localize21.0ms

Local error

Found 4 expressions with local error:

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

rewrite50.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:
20.0ms
(- (neg (pow (- (/ (+ m n) 2.0) M) 2.0)) (- l (fabs (- m n))))
10.0ms
(pow (- (/ (+ m n) 2.0) M) 2.0)
6.0ms
(* K (+ m n))
12.0ms
(cos (- (/ (* K (+ m n)) 2.0) M))

series518.0ms

Counts
4 → 12
Calls
4 calls:
180.0ms
(- (neg (pow (- (/ (+ m n) 2.0) M) 2.0)) (- l (fabs (- m n))))
259.0ms
(pow (- (/ (+ m n) 2.0) M) 2.0)
24.0ms
(* K (+ m n))
55.0ms
(cos (- (/ (* K (+ m n)) 2.0) M))

simplify44.0ms

Algorithm
egg-herbie
Counts
89 → 89
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
0435667
11447621
25001620

prune321.0ms

Filtered
89 candidates to 60 candidates (67.4%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New83689
Fresh000
Picked101
Done000
Total84690

Merged error: 1.2b

Counts
90 → 6

localize14.0ms

Local error

Found 2 expressions with local error:

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

rewrite35.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:
24.0ms
(- (neg (pow (- (/ (+ m n) 2.0) M) 2.0)) (- l (fabs (- m n))))
10.0ms
(pow (- (/ (+ m n) 2.0) M) 2.0)

series439.0ms

Counts
2 → 6
Calls
2 calls:
182.0ms
(- (neg (pow (- (/ (+ m n) 2.0) M) 2.0)) (- l (fabs (- m n))))
257.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
35002432

prune157.0ms

Filtered
50 candidates to 34 candidates (68.0%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New49150
Fresh055
Picked011
Done000
Total49756

Merged error: 1.2b

Counts
56 → 7

localize30.0ms

Local error

Found 4 expressions with local error:

0.6b
(cbrt (+ m n))
0.6b
(cbrt (+ m n))
0.6b
(cbrt (+ m n))
32.5b
(cos (- (/ (* (* K (* (cbrt (+ m n)) (cbrt (+ m n)))) (cbrt (+ m n))) 2.0) M))

rewrite26.0ms

Algorithm
rewrite-expression-head
Rules
13×*-un-lft-identity
12×cbrt-prod
add-sqr-sqrt add-cube-cbrt
cbrt-div
pow1 add-exp-log add-cbrt-cube add-log-exp
flip3-+ pow1/3 flip-+ distribute-lft-out
cos-sum
cos-diff sub-neg
Counts
4 → 52
Calls
4 calls:
3.0ms
(cbrt (+ m n))
3.0ms
(cbrt (+ m n))
3.0ms
(cbrt (+ m n))
16.0ms
(cos (- (/ (* (* K (* (cbrt (+ m n)) (cbrt (+ m n)))) (cbrt (+ m n))) 2.0) M))

series477.0ms

Counts
4 → 12
Calls
4 calls:
122.0ms
(cbrt (+ m n))
128.0ms
(cbrt (+ m n))
125.0ms
(cbrt (+ m n))
101.0ms
(cos (- (/ (* (* K (* (cbrt (+ m n)) (cbrt (+ m n)))) (cbrt (+ m n))) 2.0) M))

simplify150.0ms

Algorithm
egg-herbie
Counts
64 → 64
Iterations

Useful iterations: 4 (143.0ms)

IterNodesCost
0186485
1416445
21213439
34532439
45003433

prune326.0ms

Filtered
64 candidates to 52 candidates (81.3%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New61364
Fresh325
Picked101
Done011
Total65671

Merged error: 1.2b

Counts
71 → 6

localize20.0ms

Local error

Found 4 expressions with local error:

0.0b
(exp (- (+ (* 1.0 (* m M)) (* 1.0 (* M n))) (pow M 2)))
0.5b
(+ (* 1.0 (* m M)) (* 1.0 (* M n)))
4.0b
(- (+ (* 1.0 (* m M)) (* 1.0 (* M n))) (pow M 2))
32.6b
(cos (- (/ (* K (+ m n)) 2.0) M))

rewrite36.0ms

Algorithm
rewrite-expression-head
Rules
17×add-sqr-sqrt add-log-exp
*-un-lft-identity
exp-prod difference-of-squares
add-cube-cbrt
pow1 add-exp-log diff-log add-cbrt-cube
sub-neg exp-sum sum-log rem-exp-log
unpow-prod-down cos-sum associate--l+ distribute-lft-out-- unpow2 sqr-pow
+-commutative cos-diff flip3-- flip3-+ exp-diff flip-- flip-+ distribute-lft-out
Counts
4 → 63
Calls
4 calls:
11.0ms
(exp (- (+ (* 1.0 (* m M)) (* 1.0 (* M n))) (pow M 2)))
5.0ms
(+ (* 1.0 (* m M)) (* 1.0 (* M n)))
10.0ms
(- (+ (* 1.0 (* m M)) (* 1.0 (* M n))) (pow M 2))
8.0ms
(cos (- (/ (* K (+ m n)) 2.0) M))

series221.0ms

Counts
4 → 12
Calls
4 calls:
60.0ms
(exp (- (+ (* 1.0 (* m M)) (* 1.0 (* M n))) (pow M 2)))
71.0ms
(+ (* 1.0 (* m M)) (* 1.0 (* M n)))
37.0ms
(- (+ (* 1.0 (* m M)) (* 1.0 (* M n))) (pow M 2))
54.0ms
(cos (- (/ (* K (+ m n)) 2.0) M))

simplify52.0ms

Algorithm
egg-herbie
Counts
75 → 75
Iterations

Useful iterations: 2 (42.0ms)

IterNodesCost
0291668
11028601
25001569

prune272.0ms

Filtered
75 candidates to 57 candidates (76.0%)
Pruning

6 alts after pruning (4 fresh and 2 done)

PrunedKeptTotal
New75075
Fresh044
Picked011
Done011
Total75681

Merged error: 1.2b

Counts
81 → 6

regimes218.0ms

Accuracy

0% (0.2b remaining)

Error of 1.3b against oracle of 1.1b 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.3s

Algorithm
intervals
Results
823.0ms8132×body80valid
66.0ms151×body640valid
62.0ms102×body1280valid
37.0ms121×body320valid
12.0ms55×body160valid
1.0msbody2560valid

Profiling

Loading profile data...