Details

Time bar (total: 7.5s)

sample48.0ms

Algorithm
intervals
Results
26.0ms264×body80valid
2.0msbody1280valid
1.0msbody640valid
1.0msbody160valid
0.0msbody320valid

simplify54.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 3 (10.0ms)

IterNodesCost
05016
19516
221116
355315
4197415
5500215

prune9.0ms

Filtered
1 candidates to 1 candidates (0.0%)
Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New101
Fresh011
Picked000
Done000
Total112

Merged error: 14.3b

Counts
2 → 1

localize22.0ms

Local error

Found 4 expressions with local error:

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

rewrite119.0ms

Algorithm
rewrite-expression-head
Rules
313×add-sqr-sqrt
303×*-un-lft-identity
276×times-frac
258×prod-diff
255×add-cube-cbrt
131×cos-sum
88×associate-*r*
66×associate-*l*
43×fma-neg
23×unswap-sqr
22×*-commutative distribute-lft-out
pow1 add-exp-log div-inv
unpow-prod-down add-cbrt-cube add-log-exp
difference-of-squares
expm1-log1p-u log1p-expm1-u
pow-unpow
+-commutative distribute-rgt-in sub-neg distribute-lft-in associate-*r/ distribute-lft-out--
cos-diff pow-to-exp flip3-- pow-pow flip3-+ diff-log pow-prod-down pow-exp prod-exp flip-- cbrt-unprod flip-+ sqr-pow
Counts
4 → 380
Calls
4 calls:
6.0ms
(* K (+ m n))
28.0ms
(- (/ (* K (+ m n)) 2.0) M)
10.0ms
(pow (- (/ (+ m n) 2.0) M) 2.0)
43.0ms
(cos (- (/ (* K (+ m n)) 2.0) M))

series450.0ms

Counts
4 → 12
Calls
4 calls:
27.0ms
(* K (+ m n))
65.0ms
(- (/ (* K (+ m n)) 2.0) M)
298.0ms
(pow (- (/ (+ m n) 2.0) M) 2.0)
60.0ms
(cos (- (/ (* K (+ m n)) 2.0) M))

simplify147.0ms

Algorithm
egg-herbie
Counts
392 → 392
Iterations

Useful iterations: 2 (77.0ms)

IterNodesCost
014858354
135826416
250026323

prune840.0ms

Filtered
392 candidates to 157 candidates (59.9%)
Pruning

5 alts after pruning (5 fresh and 0 done)

PrunedKeptTotal
New3875392
Fresh000
Picked101
Done000
Total3885393

Merged error: 1.1b

Counts
393 → 5

localize15.0ms

Local error

Found 3 expressions with local error:

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

rewrite71.0ms

Algorithm
rewrite-expression-head
Rules
233×add-sqr-sqrt
223×*-un-lft-identity
177×prod-diff
113×add-cube-cbrt
78×unpow-prod-down
62×distribute-rgt-neg-in times-frac
60×distribute-lft-neg-in
53×difference-of-squares
44×distribute-lft-out--
40×fma-neg
15×add-log-exp
13×sqr-pow
12×distribute-lft-out
11×associate--r+
diff-log
neg-mul-1
pow1 add-exp-log div-inv
expm1-log1p-u sub-neg pow-unpow add-cbrt-cube log1p-expm1-u
flip3-- neg-log flip--
associate--l- neg-sub0 pow-to-exp pow-pow pow-exp associate--r-
Counts
3 → 282
Calls
3 calls:
17.0ms
(- (/ (+ m n) 2.0) M)
26.0ms
(- (- (pow (- (/ (+ m n) 2.0) M) 2.0)) (- l (fabs (- m n))))
10.0ms
(pow (- (/ (+ m n) 2.0) M) 2.0)

series532.0ms

Counts
3 → 9
Calls
3 calls:
30.0ms
(- (/ (+ m n) 2.0) M)
208.0ms
(- (- (pow (- (/ (+ m n) 2.0) M) 2.0)) (- l (fabs (- m n))))
294.0ms
(pow (- (/ (+ m n) 2.0) M) 2.0)

simplify114.0ms

Algorithm
egg-herbie
Counts
291 → 291
Iterations

Useful iterations: 2 (64.0ms)

IterNodesCost
08125976
124534207
250014117

prune478.0ms

Filtered
291 candidates to 115 candidates (60.5%)
Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New2910291
Fresh044
Picked011
Done000
Total2915296

Merged error: 1.1b

Counts
296 → 5

localize31.0ms

Local error

Found 4 expressions with local error:

0.2b
(fma (/ 1 (sqrt 2.0)) (/ (* K (+ m n)) (sqrt 2.0)) (- M))
0.4b
(/ (* K (+ m n)) (sqrt 2.0))
1.0b
(/ 1 (sqrt 2.0))
33.0b
(cos (fma (/ 1 (sqrt 2.0)) (/ (* K (+ m n)) (sqrt 2.0)) (- M)))

rewrite26.0ms

Algorithm
rewrite-expression-head
Rules
96×times-frac
82×add-sqr-sqrt *-un-lft-identity
68×add-cube-cbrt
54×sqrt-prod
28×associate-*r*
21×associate-*l*
16×associate-/l*
13×add-exp-log
12×associate-/r*
11×add-cbrt-cube
*-commutative distribute-lft-out unswap-sqr
pow1
expm1-log1p-u div-exp log1p-expm1-u add-log-exp
cbrt-undiv pow-flip
frac-2neg associate-*r/ clear-num fma-udef div-inv associate-/l/
rec-exp cos-sum sqrt-pow1 flip3-+ pow1/2 1-exp prod-exp cbrt-unprod flip-+ inv-pow
Counts
4 → 182
Calls
4 calls:
1.0ms
(fma (/ 1 (sqrt 2.0)) (/ (* K (+ m n)) (sqrt 2.0)) (- M))
12.0ms
(/ (* K (+ m n)) (sqrt 2.0))
5.0ms
(/ 1 (sqrt 2.0))
2.0ms
(cos (fma (/ 1 (sqrt 2.0)) (/ (* K (+ m n)) (sqrt 2.0)) (- M)))

series627.0ms

Counts
4 → 10
Calls
4 calls:
258.0ms
(fma (/ 1 (sqrt 2.0)) (/ (* K (+ m n)) (sqrt 2.0)) (- M))
117.0ms
(/ (* K (+ m n)) (sqrt 2.0))
0.0ms
(/ 1 (sqrt 2.0))
252.0ms
(cos (fma (/ 1 (sqrt 2.0)) (/ (* K (+ m n)) (sqrt 2.0)) (- M)))

simplify77.0ms

Algorithm
egg-herbie
Counts
192 → 192
Iterations

Useful iterations: 2 (54.0ms)

IterNodesCost
05511511
125381372
250011337

prune613.0ms

Filtered
192 candidates to 112 candidates (41.7%)
Pruning

5 alts after pruning (3 fresh and 2 done)

PrunedKeptTotal
New1911192
Fresh123
Picked011
Done011
Total1925197

Merged error: 1.1b

Counts
197 → 5

localize32.0ms

Local error

Found 4 expressions with local error:

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

rewrite174.0ms

Algorithm
rewrite-expression-head
Rules
395×add-sqr-sqrt *-un-lft-identity
393×cos-sum
387×prod-diff
351×times-frac
341×add-cube-cbrt
108×associate-*r*
81×associate-*l*
27×*-commutative distribute-lft-out unswap-sqr
div-inv
pow1 add-exp-log expm1-log1p-u add-cbrt-cube log1p-expm1-u add-log-exp
cbrt-prod cos-diff sub-neg
pow1/3
Counts
4 → 436
Calls
4 calls:
8.0ms
(cbrt (cos (- (/ (* K (+ m n)) 2.0) M)))
39.0ms
(cos (- (/ (* K (+ m n)) 2.0) M))
43.0ms
(cos (- (/ (* K (+ m n)) 2.0) M))
39.0ms
(cos (- (/ (* K (+ m n)) 2.0) M))

series337.0ms

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

simplify174.0ms

Algorithm
egg-herbie
Counts
448 → 448
Iterations

Useful iterations: 2 (52.0ms)

IterNodesCost
0121916804
1220413572
2500112904

prune946.0ms

Filtered
448 candidates to 101 candidates (77.5%)
Pruning

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New4444448
Fresh022
Picked101
Done022
Total4458453

Merged error: 1.1b

Counts
453 → 8

regimes366.0ms

Accuracy

0% (0.3b remaining)

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

bsearch0.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02110
12310
22310

end0.0ms

sample1.2s

Algorithm
intervals
Results
737.0ms8116×body80valid
59.0ms154×body640valid
55.0ms101×body1280valid
28.0ms101×body320valid
11.0ms52×body160valid
2.0msbody2560valid