Details

Time bar (total: 4.3s)

sample39.0ms

Algorithm
intervals
Results
21.0ms260×body80valid
1.0ms10×body80overflowed
1.0msbody1280valid
0.0msbody640valid

simplify52.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 3 (9.0ms)

IterNodesCost
05016
19316
220016
351715
4189315
5500115

prune9.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 14.0b

localize26.0ms

Local error

Found 3 expressions with local error:

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

rewrite61.0ms

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

series345.0ms

Counts
3 → 9
Calls
3 calls:
24.0ms
(* K (+ m n))
266.0ms
(pow (- (/ (+ m n) 2.0) M) 2.0)
54.0ms
(cos (- (/ (* K (+ m n)) 2.0) M))

simplify102.0ms

Algorithm
egg-herbie
Counts
62 → 62
Iterations

Useful iterations: 3 (97.0ms)

IterNodesCost
0318362
11070336
24261335
35003332

prune260.0ms

Pruning

3 alts after pruning (3 fresh and 0 done)

Merged error: 0.4b

localize15.0ms

Local error

Found 1 expressions with local error:

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

rewrite35.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
unpow-prod-down
*-un-lft-identity
add-cube-cbrt pow-unpow
pow1 add-exp-log difference-of-squares
pow-to-exp pow-pow times-frac pow-exp add-cbrt-cube distribute-lft-out-- add-log-exp sqr-pow
Counts
1 → 20
Calls
1 calls:
35.0ms
(pow (- (/ (+ m n) 2.0) M) 2.0)

series268.0ms

Counts
1 → 3
Calls
1 calls:
268.0ms
(pow (- (/ (+ m n) 2.0) M) 2.0)

simplify46.0ms

Algorithm
egg-herbie
Counts
23 → 23
Iterations

Useful iterations: 3 (43.0ms)

IterNodesCost
0156164
1433159
21446158
35001155

prune88.0ms

Pruning

3 alts after pruning (2 fresh and 1 done)

Merged error: 0.4b

localize28.0ms

Local error

Found 4 expressions with local error:

0.2b
(* (sqrt (* K (+ m n))) (sqrt (* K (+ m n))))
8.5b
(sqrt (* K (+ m n)))
8.5b
(sqrt (* K (+ m n)))
15.0b
(cos (- (/ (* (sqrt (* K (+ m n))) (sqrt (* K (+ m n)))) 2.0) M))

rewrite88.0ms

Algorithm
rewrite-expression-head
Rules
59×pow1
32×sqrt-pow1
22×pow-prod-down
18×associate-*r/
16×sqrt-div
12×pow1/2
10×add-sqr-sqrt pow-prod-up
add-cube-cbrt *-un-lft-identity flip3-+ flip-+
add-exp-log sqrt-prod pow-sqr add-cbrt-cube
frac-times swap-sqr associate-*r* associate-*l* add-log-exp
cos-sum associate-*l/
pow2 cos-diff sub-neg pow-plus sqrt-unprod prod-exp rem-square-sqrt *-commutative cbrt-unprod unswap-sqr
Counts
4 → 93
Calls
4 calls:
29.0ms
(* (sqrt (* K (+ m n))) (sqrt (* K (+ m n))))
3.0ms
(sqrt (* K (+ m n)))
3.0ms
(sqrt (* K (+ m n)))
49.0ms
(cos (- (/ (* (sqrt (* K (+ m n))) (sqrt (* K (+ m n)))) 2.0) M))

series183.0ms

Counts
4 → 12
Calls
4 calls:
30.0ms
(* (sqrt (* K (+ m n))) (sqrt (* K (+ m n))))
48.0ms
(sqrt (* K (+ m n)))
52.0ms
(sqrt (* K (+ m n)))
53.0ms
(cos (- (/ (* (sqrt (* K (+ m n))) (sqrt (* K (+ m n)))) 2.0) M))

simplify42.0ms

Algorithm
egg-herbie
Counts
105 → 105
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
0254656
1959575
25001548

prune372.0ms

Pruning

3 alts after pruning (1 fresh and 2 done)

Merged error: 0.4b

localize23.0ms

Local error

Found 4 expressions with local error:

0.0b
(pow (- (/ (+ m n) 2.0) M) 2.0)
0.1b
(* (sqrt K) (* (sqrt K) (+ m n)))
0.1b
(* (sqrt K) (+ m n))
16.8b
(cos (- (/ (* (sqrt K) (* (sqrt K) (+ m n))) 2.0) M))

rewrite97.0ms

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

series532.0ms

Counts
4 → 12
Calls
4 calls:
270.0ms
(pow (- (/ (+ m n) 2.0) M) 2.0)
39.0ms
(* (sqrt K) (* (sqrt K) (+ m n)))
76.0ms
(* (sqrt K) (+ m n))
147.0ms
(cos (- (/ (* (sqrt K) (* (sqrt K) (+ m n))) 2.0) M))

simplify53.0ms

Algorithm
egg-herbie
Counts
96 → 96
Iterations

Useful iterations: 2 (45.0ms)

IterNodesCost
0473625
11781550
25002547

prune395.0ms

Pruning

3 alts after pruning (1 fresh and 2 done)

Merged error: 0.4b

regimes136.0ms

Accuracy

0% (0.1b remaining)

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

bsearch0.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02110
12310
22310

end0.0ms

sample1.0s

Algorithm
intervals
Results
674.0ms8139×body80valid
23.0ms44×body1280valid
22.0ms62×body640valid
21.0ms273×body80overflowed
10.0ms39×body320valid
4.0ms21×body160valid