Details

Time bar (total: 4.9s)

sample49.0ms

Algorithm
intervals
Results
24.0ms257×body80valid
2.0msbody1280valid
1.0msbody640valid
0.0msbody160valid
0.0msbody320valid

simplify56.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 3 (10.0ms)

IterNodesCost
05016
19316
220016
351715
4189315
5500115

prune8.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 14.9b

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)) 2.0) M)
0.0b
(pow (- (/ (+ m n) 2.0) M) 2.0)
33.8b
(cos (- (/ (* K (+ m n)) 2.0) M))

rewrite271.0ms

Algorithm
rewrite-expression-head
Rules
15×*-un-lft-identity
13×add-sqr-sqrt
11×add-log-exp
add-cube-cbrt unpow-prod-down
pow1 add-exp-log
add-cbrt-cube
sub-neg pow-unpow distribute-lft-out-- difference-of-squares
cos-sum associate-+r+ diff-log sum-log distribute-lft-out
+-commutative cos-diff pow-to-exp associate-+r- flip3-- pow-pow flip3-+ times-frac pow-exp flip-- flip-+ sqr-pow
Counts
4 → 61
Calls
4 calls:
212.0ms
(+ (pow (- (/ (+ m n) 2.0) M) 2.0) (- l (fabs (- m n))))
9.0ms
(- (/ (* K (+ m n)) 2.0) M)
33.0ms
(pow (- (/ (+ m n) 2.0) M) 2.0)
15.0ms
(cos (- (/ (* K (+ m n)) 2.0) M))

series548.0ms

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

simplify135.0ms

Algorithm
egg-herbie
Counts
73 → 73
Iterations

Useful iterations: 2 (31.0ms)

IterNodesCost
0368603
11045563
24794552
35001552

prune304.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 1.0b

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)

rewrite249.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:
212.0ms
(+ (pow (- (/ (+ m n) 2.0) M) 2.0) (- l (fabs (- m n))))
36.0ms
(pow (- (/ (+ m n) 2.0) M) 2.0)

series446.0ms

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

simplify85.0ms

Algorithm
egg-herbie
Counts
43 → 43
Iterations

Useful iterations: 3 (80.0ms)

IterNodesCost
0253368
1720351
22937346
35002343

prune159.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 1.0b

localize34.0ms

Local error

Found 4 expressions with local error:

0.1b
(- (* (cos (/ (* K (+ m n)) 2.0)) (cos M)) (* (sin (/ (* K (+ m n)) 2.0)) (sin (- M))))
0.2b
(* (sin (/ (* K (+ m n)) 2.0)) (sin (- M)))
39.6b
(sin (/ (* K (+ m n)) 2.0))
39.8b
(cos (/ (* K (+ m n)) 2.0))

rewrite17.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
pow1 add-exp-log add-cube-cbrt *-un-lft-identity add-cbrt-cube add-log-exp
associate-*r* associate-*l* sin-mult
cos-mult
sub-neg flip3-- diff-log pow-prod-down prod-exp sin-neg *-commutative distribute-rgt-neg-out frac-sub flip-- cbrt-unprod sub-div unswap-sqr
Counts
4 → 48
Calls
4 calls:
5.0ms
(- (* (cos (/ (* K (+ m n)) 2.0)) (cos M)) (* (sin (/ (* K (+ m n)) 2.0)) (sin (- M))))
8.0ms
(* (sin (/ (* K (+ m n)) 2.0)) (sin (- M)))
2.0ms
(sin (/ (* K (+ m n)) 2.0))
2.0ms
(cos (/ (* K (+ m n)) 2.0))

series241.0ms

Counts
4 → 12
Calls
4 calls:
139.0ms
(- (* (cos (/ (* K (+ m n)) 2.0)) (cos M)) (* (sin (/ (* K (+ m n)) 2.0)) (sin (- M))))
60.0ms
(* (sin (/ (* K (+ m n)) 2.0)) (sin (- M)))
26.0ms
(sin (/ (* K (+ m n)) 2.0))
16.0ms
(cos (/ (* K (+ m n)) 2.0))

simplify80.0ms

Algorithm
egg-herbie
Counts
60 → 60
Iterations

Useful iterations: 3 (74.0ms)

IterNodesCost
0226677
1691604
22390575
35001568

prune343.0ms

Pruning

5 alts after pruning (4 fresh and 1 done)

Merged error: 1.0b

localize56.0ms

Local error

Found 4 expressions with local error:

39.6b
(sin (/ (* K (+ m n)) 2.0))
39.8b
(cos (/ (* K (+ m n)) 2.0))
39.8b
(cos (/ (* K (+ m n)) 2.0))
39.8b
(cos (/ (* K (+ m n)) 2.0))

rewrite7.0ms

Algorithm
rewrite-expression-head
Rules
pow1 add-exp-log add-sqr-sqrt add-cube-cbrt *-un-lft-identity add-cbrt-cube add-log-exp
Counts
4 → 28
Calls
4 calls:
1.0ms
(sin (/ (* K (+ m n)) 2.0))
1.0ms
(cos (/ (* K (+ m n)) 2.0))
1.0ms
(cos (/ (* K (+ m n)) 2.0))
2.0ms
(cos (/ (* K (+ m n)) 2.0))

series75.0ms

Counts
4 → 12
Calls
4 calls:
24.0ms
(sin (/ (* K (+ m n)) 2.0))
20.0ms
(cos (/ (* K (+ m n)) 2.0))
15.0ms
(cos (/ (* K (+ m n)) 2.0))
16.0ms
(cos (/ (* K (+ m n)) 2.0))

simplify121.0ms

Algorithm
egg-herbie
Counts
40 → 40
Iterations

Useful iterations: 1 (4.0ms)

IterNodesCost
056236
188199
2113199
3124199
4158199
5236199
6761199
72328199
85001199

prune352.0ms

Pruning

3 alts after pruning (2 fresh and 1 done)

Merged error: 1.0b

regimes151.0ms

Accuracy

0% (0.1b remaining)

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

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02010
12010

end0.0ms

sample1.1s

Algorithm
intervals
Results
648.0ms8052×body80valid
68.0ms140×body1280valid
48.0ms142×body640valid
31.0ms110×body320valid
14.0ms64×body160valid
1.0msbody2560valid