Details

Time bar (total: 10.2s)

analyze3.7s (36.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
0%99.8%0.2%9
0%99.8%0.2%10
0%99.8%0.2%11
0%99.8%0.2%12
0%99.8%0.2%13
1.8%98%0.2%14
Compiler

Compiled 35 to 24 computations (31.4% saved)

sample3.4s (33.6%)

Symmetry

(sort m n)

Results
2.0s8096×body128valid
1.1s398×body8192exit
57.0ms63×body1024valid
47.0ms53×body1024invalid
35.0ms59×body512valid
28.0ms48×body512invalid
15.0ms37×body256valid
14.0ms34×body256invalid
12.0ms10×body2048invalid
7.0ms30×body128invalid
2.0msbody2048valid
Compiler

Compiled 69 to 47 computations (31.9% saved)

simplify59.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
14.1b
Counts
3 → 1
Alt Table
StatusErrorProgram
14.1b
(*.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)

localize19.0ms (0.2%)

Local error

Found 4 expressions with local error:

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

series96.0ms (0.9%)

Counts
4 → 168
Calls

4 calls:

45.0ms
(+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l)
26.0ms
(cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M))
17.0ms
(pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2)
7.0ms
(*.f64 K (+.f64 m n))

rewrite40.0ms (0.4%)

Algorithm
rewrite-expression-head
Rules
36×add-sqr-sqrt_binary64
32×*-un-lft-identity_binary64
25×cos-sum_binary64
24×add-cube-cbrt_binary64
21×prod-diff_binary64
Counts
4 → 108
Calls

4 calls:

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

simplify142.0ms (1.4%)

Algorithm
egg-herbie
Rules
326×associate-*r*_binary64
293×fma-neg_binary64
288×associate-*l*_binary64
269×fma-def_binary64
238×distribute-rgt-neg-in_binary64
Counts
276 → 235
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
04617167
19835956
232645823
349335823

prune247.0ms (2.4%)

Pruning

4 alts after pruning (4 fresh and 0 done)

PrunedKeptTotal
New2314235
Fresh000
Picked101
Done000
Total2324236
Error
0.8b
Counts
236 → 4
Alt Table
StatusErrorProgram
41.2b
(*.f64 (cos.f64 (-.f64 (/.f64 (*.f64 (sqrt.f64 (*.f64 K (+.f64 m n))) (sqrt.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))))
14.1b
(*.f64 (log1p.f64 (expm1.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))))
0.9b
(*.f64 (cos.f64 M) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
14.1b
(*.f64 (cbrt.f64 (pow.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 n m)) 2) M)) 3)) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
Compiler

Compiled 10461 to 4987 computations (52.3% saved)

localize15.0ms (0.1%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))
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)

series53.0ms (0.5%)

Counts
1 → 48
Calls

1 calls:

53.0ms
(-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))

rewrite33.0ms (0.3%)

Algorithm
rewrite-expression-head
Rules
56×*-un-lft-identity_binary64
42×add-sqr-sqrt_binary64
36×prod-diff_binary64
26×fabs-mul_binary64
21×add-cube-cbrt_binary64
Counts
1 → 73
Calls

1 calls:

22.0ms
(-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))

simplify127.0ms (1.3%)

Algorithm
egg-herbie
Rules
564×fma-neg_binary64
479×distribute-rgt-in_binary64
424×distribute-lft-in_binary64
346×cancel-sign-sub-inv_binary64
269×sub-neg_binary64
Counts
121 → 118
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
02066040
15834533
218603642
345303634
449543634

prune262.0ms (2.6%)

Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New2301231
Fresh033
Picked011
Done000
Total2305235
Error
0.8b
Counts
235 → 5
Alt Table
StatusErrorProgram
41.2b
(*.f64 (cos.f64 (-.f64 (/.f64 (*.f64 (sqrt.f64 (*.f64 K (+.f64 m n))) (sqrt.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))))
14.1b
(*.f64 (log1p.f64 (expm1.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))))
0.9b
(*.f64 (cos.f64 M) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
25.4b
(*.f64 (cos.f64 M) (exp.f64 (fma.f64 m (-.f64 M (*.f64 n 1/2)) (*.f64 (*.f64 m m) -1/4))))
14.1b
(*.f64 (cbrt.f64 (pow.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 n m)) 2) M)) 3)) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
Compiler

Compiled 8823 to 4434 computations (49.7% saved)

localize24.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2)
0.6b
(cbrt.f64 (pow.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 n m)) 2) M)) 3))
0.6b
(pow.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 n m)) 2) M)) 3)
32.4b
(cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 n m)) 2) M))

series225.0ms (2.2%)

Counts
3 → 144
Calls

3 calls:

168.0ms
(pow.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 n m)) 2) M)) 3)
30.0ms
(cbrt.f64 (pow.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 n m)) 2) M)) 3))
27.0ms
(cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 n m)) 2) M))

rewrite26.0ms (0.3%)

Algorithm
rewrite-expression-head
Rules
25×cos-sum_binary64
23×*-un-lft-identity_binary64
23×add-sqr-sqrt_binary64
23×add-cube-cbrt_binary64
21×prod-diff_binary64
Counts
3 → 83
Calls

3 calls:

13.0ms
(cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 n m)) 2) M))
5.0ms
(pow.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 n m)) 2) M)) 3)
2.0ms
(cbrt.f64 (pow.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 n m)) 2) M)) 3))

simplify203.0ms (2%)

Algorithm
egg-herbie
Rules
598×associate-*l*_binary64
417×fma-def_binary64
410×*-commutative_binary64
382×fma-neg_binary64
244×sub-neg_binary64
Counts
227 → 152
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
05428711
112747517
241227499
349107499
449887499

prune311.0ms (3.1%)

Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New2121213
Fresh033
Picked101
Done011
Total2135218
Error
0.8b
Counts
218 → 5
Alt Table
StatusErrorProgram
0.9b
(*.f64 (cos.f64 M) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
14.1b
(*.f64 (log.f64 (exp.f64 (cbrt.f64 (pow.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 n m)) 2) M)) 3)))) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
41.2b
(*.f64 (cos.f64 (-.f64 (/.f64 (*.f64 (sqrt.f64 (*.f64 K (+.f64 m n))) (sqrt.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))))
14.1b
(*.f64 (log1p.f64 (expm1.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))))
25.4b
(*.f64 (cos.f64 M) (exp.f64 (fma.f64 m (-.f64 M (*.f64 n 1/2)) (*.f64 (*.f64 m m) -1/4))))
Compiler

Compiled 12502 to 6576 computations (47.4% saved)

localize23.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2)
0.3b
(log1p.f64 (expm1.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M))))
0.4b
(expm1.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M)))
32.4b
(cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M))

series116.0ms (1.1%)

Counts
2 → 96
Calls

2 calls:

88.0ms
(expm1.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M)))
28.0ms
(log1p.f64 (expm1.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M))))

rewrite1.0ms (0%)

Algorithm
rewrite-expression-head
Rules
log1p-expm1-u_binary64
*-un-lft-identity_binary64
add-sqr-sqrt_binary64
add-cube-cbrt_binary64
add-cbrt-cube_binary64
Counts
2 → 22
Calls

2 calls:

0.0ms
(expm1.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M)))
0.0ms
(log1p.f64 (expm1.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M))))

simplify81.0ms (0.8%)

Algorithm
egg-herbie
Rules
873×associate-*r*_binary64
574×associate-*l*_binary64
390×fma-def_binary64
210×associate-+r+_binary64
182×*-commutative_binary64
Counts
118 → 96
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
03614961
111774394
250224394

prune338.0ms (3.3%)

Pruning

5 alts after pruning (3 fresh and 2 done)

PrunedKeptTotal
New2360236
Fresh033
Picked011
Done011
Total2365241
Error
0.8b
Counts
241 → 5
Alt Table
StatusErrorProgram
0.9b
(*.f64 (cos.f64 M) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
14.1b
(*.f64 (log.f64 (exp.f64 (cbrt.f64 (pow.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 n m)) 2) M)) 3)))) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
41.2b
(*.f64 (cos.f64 (-.f64 (/.f64 (*.f64 (sqrt.f64 (*.f64 K (+.f64 m n))) (sqrt.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))))
14.1b
(*.f64 (log1p.f64 (expm1.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))))
25.4b
(*.f64 (cos.f64 M) (exp.f64 (fma.f64 m (-.f64 M (*.f64 n 1/2)) (*.f64 (*.f64 m m) -1/4))))
Compiler

Compiled 13779 to 7002 computations (49.2% saved)

regimes428.0ms (4.2%)

Accuracy

Total 0.2b remaining (15.7%)

Threshold costs 0.2b (15.7%)

Counts
66 → 1
Compiler

Compiled 10856 to 7722 computations (28.9% saved)

simplify3.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
01731
12831
24531
36031
46931
57231
67231

end119.0ms (1.2%)

Remove

(sort m n)

Compiler

Compiled 260 to 181 computations (30.4% saved)

Profiling

Loading profile data...