Details

Time bar (total: 9.7s)

analyze2.9s (29.9%)

Algorithm
search
Search
TrueOtherFalseIter
0%99.8%0.2%0
0%99.8%0.2%1
0%99.8%0.2%2
0%99.8%0.2%3
0%99.8%0.2%4
0%99.8%0.2%5
0%99.8%0.2%6
0%99.8%0.2%7
0%99.8%0.2%8
12.5%87.3%0.2%9
12.5%87.3%0.2%10
18.7%81.1%0.2%11
18.7%81.1%0.2%12
18.7%81.1%0.2%13
20.5%79.3%0.2%14
Compiler

Compiled 35 to 24 computations (31.4% saved)

sample2.1s (22.1%)

Symmetry

(sort m n)

Results
1.7s8089×body128valid
96.0ms117×body1024invalid
66.0ms308×body128invalid
62.0ms68×body1024valid
34.0ms59×body512valid
33.0ms29×body2048invalid
32.0ms60×body512invalid
23.0ms57×body256invalid
16.0ms39×body256valid
1.0msbody2048valid
Compiler

Compiled 104 to 71 computations (31.7% saved)

simplify62.0ms (0.6%)

Algorithm
egg-herbie
Rules
691×exp-prod_binary64
507×exp-sum_binary64
446×fma-neg_binary64
375×associate-*l*_binary64
251×times-frac_binary64
Counts
1 → 2
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
02245
15845
212943
338443
4126643
5402343
6494543
7501943

prune4.0ms (0%)

Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New112
Fresh101
Picked000
Done000
Total213
Error
15.7b
Counts
3 → 1
Alt Table
StatusErrorProgram
15.7b
(*.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M)) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
Compiler

Compiled 128 to 80 computations (37.5% saved)

localize17.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M)
0.0b
(+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l)
0.0b
(pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2)
34.3b
(cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M))

series91.0ms (0.9%)

Counts
4 → 180
Calls

4 calls:

38.0ms
(+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l)
22.0ms
(cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M))
16.0ms
(pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2)
14.0ms
(-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M)

rewrite44.0ms (0.5%)

Algorithm
rewrite-expression-head
Rules
50×add-sqr-sqrt_binary64
46×*-un-lft-identity_binary64
42×prod-diff_binary64
38×add-cube-cbrt_binary64
25×cos-sum_binary64
Counts
4 → 129
Calls

4 calls:

11.0ms
(+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l)
9.0ms
(pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2)
9.0ms
(cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M))
7.0ms
(-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M)

simplify189.0ms (2%)

Algorithm
egg-herbie
Rules
512×fma-neg_binary64
284×associate-*r*_binary64
268×fma-def_binary64
241×distribute-rgt-neg-in_binary64
240×associate-*l*_binary64
Counts
309 → 263
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
04478684
19536801
230826605
348876605
450406605

prune307.0ms (3.2%)

Pruning

4 alts after pruning (4 fresh and 0 done)

PrunedKeptTotal
New2594263
Fresh000
Picked101
Done000
Total2604264
Error
0.8b
Counts
264 → 4
Alt Table
StatusErrorProgram
15.7b
(*.f64 (*.f64 (*.f64 (cbrt.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M))) (cbrt.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M)))) (cbrt.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M)))) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
1.0b
(*.f64 (cos.f64 M) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
10.3b
(*.f64 (cos.f64 (*.f64 1/2 (*.f64 K m))) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
15.6b
(*.f64 (cos.f64 (fma.f64 (/.f64 K (sqrt.f64 2)) (/.f64 (+.f64 m n) (sqrt.f64 2)) (neg.f64 M))) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
Compiler

Compiled 11853 to 5587 computations (52.9% saved)

localize13.0ms (0.1%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(-.f64 (/.f64 (+.f64 m n) 2) M)
0.0b
(+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l)
0.0b
(pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2)

series7.0ms (0.1%)

Counts
1 → 36
Calls

1 calls:

7.0ms
(-.f64 (/.f64 (+.f64 m n) 2) M)

rewrite18.0ms (0.2%)

Algorithm
rewrite-expression-head
Rules
76×*-un-lft-identity_binary64
55×add-sqr-sqrt_binary64
50×add-cube-cbrt_binary64
49×times-frac_binary64
48×prod-diff_binary64
Counts
1 → 83
Calls

1 calls:

9.0ms
(-.f64 (/.f64 (+.f64 m n) 2) M)

simplify105.0ms (1.1%)

Algorithm
egg-herbie
Rules
1011×fma-def_binary64
456×distribute-rgt-in_binary64
400×fma-neg_binary64
398×distribute-lft-in_binary64
288×times-frac_binary64
Counts
119 → 95
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
01262560
12131627
25961258
318551257
443981257
549451257
648911257

prune256.0ms (2.6%)

Pruning

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New2080208
Fresh033
Picked011
Done000
Total2084212
Error
0.8b
Counts
212 → 4
Alt Table
StatusErrorProgram
15.7b
(*.f64 (*.f64 (*.f64 (cbrt.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M))) (cbrt.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M)))) (cbrt.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M)))) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
1.0b
(*.f64 (cos.f64 M) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
10.3b
(*.f64 (cos.f64 (*.f64 1/2 (*.f64 K m))) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
15.6b
(*.f64 (cos.f64 (fma.f64 (/.f64 K (sqrt.f64 2)) (/.f64 (+.f64 m n) (sqrt.f64 2)) (neg.f64 M))) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
Compiler

Compiled 6761 to 3109 computations (54% saved)

localize16.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(-.f64 (/.f64 (+.f64 m n) 2) M)
0.0b
(+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l)
0.0b
(pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2)
30.2b
(cos.f64 (*.f64 1/2 (*.f64 K m)))

series5.0ms (0%)

Counts
1 → 8
Calls

1 calls:

5.0ms
(cos.f64 (*.f64 1/2 (*.f64 K m)))

rewrite2.0ms (0%)

Algorithm
rewrite-expression-head
Rules
*-un-lft-identity_binary64
add-sqr-sqrt_binary64
add-cube-cbrt_binary64
add-cbrt-cube_binary64
add-exp-log_binary64
Counts
1 → 9
Calls

1 calls:

1.0ms
(cos.f64 (*.f64 1/2 (*.f64 K m)))

simplify72.0ms (0.7%)

Algorithm
egg-herbie
Rules
611×distribute-rgt-neg-in_binary64
528×distribute-lft-neg-in_binary64
489×fma-def_binary64
393×unsub-neg_binary64
369×*-commutative_binary64
Counts
17 → 17
Iterations

Useful iterations: 6 (0.0ms)

IterNodesCost
040316
193289
2242281
3960277
42431265
53705259
64723241
75139241

prune285.0ms (3%)

Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New2241225
Fresh112
Picked101
Done011
Total2263229
Error
0.8b
Counts
229 → 3
Alt Table
StatusErrorProgram
10.3b
(*.f64 (*.f64 (*.f64 (cbrt.f64 (cos.f64 (*.f64 1/2 (*.f64 K m)))) (cbrt.f64 (cos.f64 (*.f64 1/2 (*.f64 K m))))) (cbrt.f64 (cos.f64 (*.f64 1/2 (*.f64 K m))))) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
15.6b
(*.f64 (cos.f64 (fma.f64 (/.f64 K (sqrt.f64 2)) (/.f64 (+.f64 m n) (sqrt.f64 2)) (neg.f64 M))) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
1.0b
(*.f64 (cos.f64 M) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
Compiler

Compiled 8042 to 3988 computations (50.4% saved)

localize20.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.1b
(*.f64 (*.f64 (cbrt.f64 (cos.f64 (*.f64 1/2 (*.f64 K m)))) (cbrt.f64 (cos.f64 (*.f64 1/2 (*.f64 K m))))) (cbrt.f64 (cos.f64 (*.f64 1/2 (*.f64 K m)))))
0.2b
(*.f64 (cbrt.f64 (cos.f64 (*.f64 1/2 (*.f64 K m)))) (cbrt.f64 (cos.f64 (*.f64 1/2 (*.f64 K m)))))
0.4b
(cbrt.f64 (cos.f64 (*.f64 1/2 (*.f64 K m))))
30.2b
(cos.f64 (*.f64 1/2 (*.f64 K m)))

series860.0ms (8.9%)

Counts
3 → 72
Calls

3 calls:

547.0ms
(*.f64 (cbrt.f64 (cos.f64 (*.f64 1/2 (*.f64 K m)))) (cbrt.f64 (cos.f64 (*.f64 1/2 (*.f64 K m)))))
308.0ms
(cbrt.f64 (cos.f64 (*.f64 1/2 (*.f64 K m))))
5.0ms
(*.f64 (*.f64 (cbrt.f64 (cos.f64 (*.f64 1/2 (*.f64 K m)))) (cbrt.f64 (cos.f64 (*.f64 1/2 (*.f64 K m))))) (cbrt.f64 (cos.f64 (*.f64 1/2 (*.f64 K m)))))

rewrite22.0ms (0.2%)

Algorithm
rewrite-expression-head
Rules
29×pow1_binary64
24×add-sqr-sqrt_binary64
23×cbrt-prod_binary64
16×pow1/3_binary64
14×*-un-lft-identity_binary64
Counts
3 → 93
Calls

3 calls:

9.0ms
(*.f64 (*.f64 (cbrt.f64 (cos.f64 (*.f64 1/2 (*.f64 K m)))) (cbrt.f64 (cos.f64 (*.f64 1/2 (*.f64 K m))))) (cbrt.f64 (cos.f64 (*.f64 1/2 (*.f64 K m)))))
6.0ms
(*.f64 (cbrt.f64 (cos.f64 (*.f64 1/2 (*.f64 K m)))) (cbrt.f64 (cos.f64 (*.f64 1/2 (*.f64 K m)))))
1.0ms
(cbrt.f64 (cos.f64 (*.f64 1/2 (*.f64 K m))))

simplify128.0ms (1.3%)

Algorithm
egg-herbie
Rules
688×unswap-sqr_binary64
393×fma-neg_binary64
378×cancel-sign-sub-inv_binary64
316×log-prod_binary64
255×*-commutative_binary64
Counts
165 → 138
Iterations

Useful iterations: 4 (0.0ms)

IterNodesCost
01272961
12802569
28692442
318432374
444882338
548542338
649432338

prune435.0ms (4.5%)

Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New2343237
Fresh011
Picked101
Done011
Total2355240
Error
0.8b
Counts
240 → 5
Alt Table
StatusErrorProgram
10.3b
(*.f64 (*.f64 (cbrt.f64 (pow.f64 (cos.f64 (*.f64 1/2 (*.f64 K m))) 2)) (cbrt.f64 (cos.f64 (*.f64 1/2 (*.f64 K m))))) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
10.3b
(*.f64 (*.f64 (pow.f64 (cbrt.f64 (cbrt.f64 (cos.f64 (*.f64 1/2 (*.f64 K m))))) 8) (cbrt.f64 (cbrt.f64 (cos.f64 (*.f64 1/2 (*.f64 K m)))))) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
10.3b
(*.f64 (*.f64 (expm1.f64 (log1p.f64 (*.f64 (cbrt.f64 (cos.f64 (*.f64 1/2 (*.f64 K m)))) (cbrt.f64 (cos.f64 (*.f64 1/2 (*.f64 K m))))))) (cbrt.f64 (cos.f64 (*.f64 1/2 (*.f64 K m))))) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
15.6b
(*.f64 (cos.f64 (fma.f64 (/.f64 K (sqrt.f64 2)) (/.f64 (+.f64 m n) (sqrt.f64 2)) (neg.f64 M))) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
1.0b
(*.f64 (cos.f64 M) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
Compiler

Compiled 11352 to 6751 computations (40.5% saved)

regimes1.5s (15.9%)

Accuracy

Total 0.2b remaining (13%)

Threshold costs 0.2b (13%)

Counts
203 → 1
Compiler

Compiled 43298 to 30642 computations (29.2% saved)

simplify4.0ms (0%)

Algorithm
egg-herbie
Rules
12×+-commutative_binary64
10×sub-neg_binary64
*-commutative_binary64
neg-sub0_binary64
neg-mul-1_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01726
13026
24626
36126
47026
57326
67226

end139.0ms (1.4%)

Remove

(sort m n)

Compiler

Compiled 280 to 202 computations (27.9% saved)

Profiling

Loading profile data...