Details

Time bar (total: 2.9s)

sample57.0ms

Algorithm
intervals
Results
32.0ms262×body80valid
2.0msbody640valid
1.0msbody1280valid
1.0msbody320valid

simplify48.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 3 (8.0ms)

IterNodesCost
05016
19316
220016
351715
4189315
5500115

prune12.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: 16.0b

Counts
2 → 1

localize22.0ms

Local error

Found 4 expressions with local error:

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

rewrite36.0ms

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

series78.0ms

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

simplify42.0ms

Algorithm
egg-herbie
Counts
79 → 79
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
0392495
11304457
25001450

prune149.0ms

Filtered
56 candidates to 79 candidates (-41.1%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New77279
Fresh000
Picked101
Done000
Total78280

Merged error: 0.6b

Counts
80 → 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)

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:
18.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:
42.0ms
(+ (pow (- (/ (+ m n) 2.0) M) 2.0) (- l (fabs (- m n))))
39.0ms
(pow (- (/ (+ m n) 2.0) M) 2.0)

simplify80.0ms

Algorithm
egg-herbie
Counts
43 → 43
Iterations

Useful iterations: 3 (75.0ms)

IterNodesCost
0284378
1795361
23218353
35001350

prune76.0ms

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

2 alts after pruning (1 fresh and 1 done)

PrunedKeptTotal
New43043
Fresh011
Picked011
Done000
Total43245

Merged error: 0.6b

Counts
45 → 2

localize27.0ms

Local error

Found 4 expressions with local error:

16.4b
(cbrt (* K (+ m n)))
16.4b
(cbrt (* K (+ m n)))
16.4b
(cbrt (* K (+ m n)))
32.4b
(cos (- (/ (* (* (cbrt (* K (+ m n))) (cbrt (* K (+ m n)))) (cbrt (* K (+ m n)))) 2.0) M))

rewrite24.0ms

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

series109.0ms

Counts
4 → 12
Calls
4 calls:
30.0ms
(cbrt (* K (+ m n)))
28.0ms
(cbrt (* K (+ m n)))
28.0ms
(cbrt (* K (+ m n)))
23.0ms
(cos (- (/ (* (* (cbrt (* K (+ m n))) (cbrt (* K (+ m n)))) (cbrt (* K (+ m n)))) 2.0) M))

simplify63.0ms

Algorithm
egg-herbie
Counts
55 → 55
Iterations

Useful iterations: 4 (57.0ms)

IterNodesCost
0186514
1386464
2918446
32313434
45001407

prune110.0ms

Filtered
49 candidates to 55 candidates (-12.2%)
Pruning

2 alts after pruning (0 fresh and 2 done)

PrunedKeptTotal
New55055
Fresh000
Picked011
Done011
Total55257

Merged error: 0.6b

Counts
57 → 2

regimes293.0ms

Accuracy

0% (0.2b remaining)

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

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02010
12010

end0.0ms

sample1.5s

Algorithm
intervals
Results
817.0ms8055×body80valid
81.0ms190×body640valid
78.0ms126×body1280valid
34.0ms108×body320valid
11.0ms53×body160valid
2.0msbody2560valid

Profiling

Loading profile data...