Details

Time bar (total: 4.5s)

sample41.0ms

Algorithm
intervals
Results
22.0ms261×body80valid
1.0msbody640valid
1.0msbody320valid
1.0msbody1280valid

simplify48.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 3 (8.0ms)

IterNodesCost
05016
19316
220016
351715
4189315
5500115

prune8.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 17.7b

localize22.0ms

Local error

Found 3 expressions with local error:

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

rewrite256.0ms

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

series499.0ms

Counts
3 → 9
Calls
3 calls:
268.0ms
(pow (- (/ (+ m n) 2.0) M) 2.0)
176.0ms
(+ (pow (- (/ (+ m n) 2.0) M) 2.0) (- l (fabs (- m n))))
54.0ms
(cos (- (/ (* K (+ m n)) 2.0) M))

simplify80.0ms

Algorithm
egg-herbie
Counts
56 → 56
Iterations

Useful iterations: 3 (73.0ms)

IterNodesCost
0308480
1821452
23239447
35002444

prune242.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 1.1b

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

rewrite238.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:
206.0ms
(+ (pow (- (/ (+ m n) 2.0) M) 2.0) (- l (fabs (- m n))))
31.0ms
(pow (- (/ (+ m n) 2.0) M) 2.0)

series444.0ms

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

simplify78.0ms

Algorithm
egg-herbie
Counts
43 → 43
Iterations

Useful iterations: 3 (72.0ms)

IterNodesCost
0253368
1720351
22937346
35002343

prune157.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 1.1b

localize31.0ms

Local error

Found 4 expressions with local error:

0.2b
(+ (* (cos (/ (* K (+ m n)) 2.0)) (cos M)) (* (sin (/ (* K (+ m n)) 2.0)) (sin M)))
0.3b
(* (sin (/ (* K (+ m n)) 2.0)) (sin M))
40.4b
(cos (/ (* K (+ m n)) 2.0))
40.6b
(sin (/ (* 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
+-commutative flip3-+ pow-prod-down frac-add prod-exp sum-log cos-mult *-commutative cbrt-unprod flip-+ unswap-sqr
Counts
4 → 45
Calls
4 calls:
4.0ms
(+ (* (cos (/ (* K (+ m n)) 2.0)) (cos M)) (* (sin (/ (* K (+ m n)) 2.0)) (sin M)))
6.0ms
(* (sin (/ (* K (+ m n)) 2.0)) (sin M))
1.0ms
(cos (/ (* K (+ m n)) 2.0))
2.0ms
(sin (/ (* K (+ m n)) 2.0))

series217.0ms

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

simplify65.0ms

Algorithm
egg-herbie
Counts
57 → 57
Iterations

Useful iterations: 1 (6.0ms)

IterNodesCost
0207584
1625524
21844524
35001524

prune315.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 1.1b

localize40.0ms

Local error

Found 4 expressions with local error:

40.4b
(cos (/ (* K (+ m n)) 2.0))
40.4b
(cos (/ (* K (+ m n)) 2.0))
40.4b
(cos (/ (* K (+ m n)) 2.0))
40.6b
(sin (/ (* 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
(cos (/ (* K (+ m n)) 2.0))
1.0ms
(cos (/ (* K (+ m n)) 2.0))
1.0ms
(cos (/ (* K (+ m n)) 2.0))
2.0ms
(sin (/ (* K (+ m n)) 2.0))

series71.0ms

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

simplify109.0ms

Algorithm
egg-herbie
Counts
40 → 40
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
056236
188199
2113199
3124199
4158199
5236199
6761199
72328199
85001199

prune285.0ms

Pruning

5 alts after pruning (3 fresh and 2 done)

Merged error: 1.1b

regimes204.0ms

Accuracy

0% (0.2b remaining)

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

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02010
12010

end0.0ms

sample1.1s

Algorithm
intervals
Results
628.0ms8086×body80valid
56.0ms115×body1280valid
54.0ms161×body640valid
26.0ms107×body320valid
6.0ms38×body160valid
2.0msbody2560valid