Details

Time bar (total: 8.7s)

analyze2.8s (32.5%)

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 (24.3%)

Symmetry

(sort m n)

Results
1.7s8116×body128valid
75.0ms82×body1024invalid
62.0ms276×body128invalid
49.0ms87×body512invalid
48.0ms59×body1024valid
26.0ms48×body512valid
25.0ms23×body2048invalid
21.0ms53×body256invalid
12.0ms33×body256valid
Compiler

Compiled 104 to 71 computations (31.7% saved)

simplify70.0ms (0.8%)

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

localize18.0ms (0.2%)

Local error

Found 4 expressions with local error:

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

series122.0ms (1.4%)

Counts
4 → 168
Calls

4 calls:

66.0ms
(-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))
29.0ms
(cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M))
20.0ms
(pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2)
6.0ms
(*.f64 K (+.f64 m n))

rewrite95.0ms (1.1%)

Algorithm
rewrite-expression-head
Rules
81×*-un-lft-identity_binary64
70×add-sqr-sqrt_binary64
57×prod-diff_binary64
42×add-cube-cbrt_binary64
26×fabs-mul_binary64
Counts
4 → 156
Calls

4 calls:

49.0ms
(cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M))
19.0ms
(-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))
7.0ms
(pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2)
4.0ms
(*.f64 K (+.f64 m n))

simplify270.0ms (3.1%)

Algorithm
egg-herbie
Rules
692×fma-neg_binary64
385×associate-*r*_binary64
362×associate-*l*_binary64
329×fma-def_binary64
268×*-commutative_binary64
Counts
324 → 305
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
057511388
112888942
244588942
350478942

prune523.0ms (6%)

Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New2996305
Fresh000
Picked101
Done000
Total3006306
Error
1.2b
Counts
306 → 6
Alt Table
StatusErrorProgram
14.4b
(*.f64 (cos.f64 (-.f64 (/.f64 (*.f64 (*.f64 K (*.f64 (cbrt.f64 (+.f64 m n)) (cbrt.f64 (+.f64 m n)))) (cbrt.f64 (+.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))))
9.4b
(*.f64 (cos.f64 (-.f64 (*.f64 1/2 (*.f64 n K)) M)) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
47.9b
(*.f64 (cos.f64 (-.f64 (/.f64 (exp.f64 (+.f64 (log.f64 K) (log.f64 (+.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.4b
(*.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))))
14.3b
(*.f64 (cos.f64 (-.f64 (/.f64 (*.f64 (*.f64 (cbrt.f64 K) (cbrt.f64 K)) (*.f64 (cbrt.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.4b
(*.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 15208 to 7399 computations (51.3% saved)

localize16.0ms (0.2%)

Local error

Found 2 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
(pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2)

prune296.0ms (3.4%)

Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New1830183
Fresh055
Picked011
Done000
Total1836189
Error
1.2b
Counts
189 → 6
Alt Table
StatusErrorProgram
14.4b
(*.f64 (cos.f64 (-.f64 (/.f64 (*.f64 (*.f64 K (*.f64 (cbrt.f64 (+.f64 m n)) (cbrt.f64 (+.f64 m n)))) (cbrt.f64 (+.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))))
9.4b
(*.f64 (cos.f64 (-.f64 (*.f64 1/2 (*.f64 n K)) M)) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
47.9b
(*.f64 (cos.f64 (-.f64 (/.f64 (exp.f64 (+.f64 (log.f64 K) (log.f64 (+.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.4b
(*.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))))
14.3b
(*.f64 (cos.f64 (-.f64 (/.f64 (*.f64 (*.f64 (cbrt.f64 K) (cbrt.f64 K)) (*.f64 (cbrt.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.4b
(*.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 7613 to 3848 computations (49.5% saved)

localize19.0ms (0.2%)

Local error

Found 4 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 (*.f64 1/2 (*.f64 n K)) M)
0.0b
(pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2)
23.6b
(cos.f64 (-.f64 (*.f64 1/2 (*.f64 n K)) M))

series20.0ms (0.2%)

Counts
2 → 21
Calls

2 calls:

11.0ms
(cos.f64 (-.f64 (*.f64 1/2 (*.f64 n K)) M))
9.0ms
(-.f64 (*.f64 1/2 (*.f64 n K)) M)

rewrite12.0ms (0.1%)

Algorithm
rewrite-expression-head
Rules
cos-sum_binary64
cancel-sign-sub-inv_binary64
*-un-lft-identity_binary64
add-sqr-sqrt_binary64
prod-diff_binary64
Counts
2 → 37
Calls

2 calls:

5.0ms
(cos.f64 (-.f64 (*.f64 1/2 (*.f64 n K)) M))
5.0ms
(-.f64 (*.f64 1/2 (*.f64 n K)) M)

simplify78.0ms (0.9%)

Algorithm
egg-herbie
Rules
695×fma-neg_binary64
534×cancel-sign-sub-inv_binary64
404×fma-def_binary64
337×neg-mul-1_binary64
310×distribute-rgt-neg-in_binary64
Counts
58 → 63
Iterations

Useful iterations: 4 (0.0ms)

IterNodesCost
01381151
12611073
28951012
32154992
44491984
54965984

prune403.0ms (4.6%)

Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New2451246
Fresh044
Picked011
Done011
Total2457252
Error
1.2b
Counts
252 → 7
Alt Table
StatusErrorProgram
14.4b
(*.f64 (cos.f64 (-.f64 (/.f64 (*.f64 (*.f64 K (*.f64 (cbrt.f64 (+.f64 m n)) (cbrt.f64 (+.f64 m n)))) (cbrt.f64 (+.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))))
9.4b
(*.f64 (cos.f64 (-.f64 (*.f64 1/2 (*.f64 n K)) M)) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
28.7b
(*.f64 (cos.f64 (expm1.f64 (log1p.f64 (-.f64 (*.f64 1/2 (*.f64 n K)) M)))) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
47.9b
(*.f64 (cos.f64 (-.f64 (/.f64 (exp.f64 (+.f64 (log.f64 K) (log.f64 (+.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.4b
(*.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))))
14.3b
(*.f64 (cos.f64 (-.f64 (/.f64 (*.f64 (*.f64 (cbrt.f64 K) (cbrt.f64 K)) (*.f64 (cbrt.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.4b
(*.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 11098 to 5762 computations (48.1% saved)

localize20.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.3b
(*.f64 (*.f64 (cbrt.f64 K) (cbrt.f64 K)) (*.f64 (cbrt.f64 K) (+.f64 m n)))
0.5b
(*.f64 (cbrt.f64 K) (cbrt.f64 K))
0.6b
(cbrt.f64 K)
33.1b
(cos.f64 (-.f64 (/.f64 (*.f64 (*.f64 (cbrt.f64 K) (cbrt.f64 K)) (*.f64 (cbrt.f64 K) (+.f64 m n))) 2) M))

series175.0ms (2%)

Counts
4 → 108
Calls

4 calls:

79.0ms
(cos.f64 (-.f64 (/.f64 (*.f64 (*.f64 (cbrt.f64 K) (cbrt.f64 K)) (*.f64 (cbrt.f64 K) (+.f64 m n))) 2) M))
38.0ms
(*.f64 (cbrt.f64 K) (cbrt.f64 K))
36.0ms
(cbrt.f64 K)
21.0ms
(*.f64 (*.f64 (cbrt.f64 K) (cbrt.f64 K)) (*.f64 (cbrt.f64 K) (+.f64 m n)))

rewrite37.0ms (0.4%)

Algorithm
rewrite-expression-head
Rules
35×add-sqr-sqrt_binary64
27×*-un-lft-identity_binary64
27×add-cube-cbrt_binary64
25×cos-sum_binary64
23×pow1_binary64
Counts
4 → 120
Calls

4 calls:

12.0ms
(cos.f64 (-.f64 (/.f64 (*.f64 (*.f64 (cbrt.f64 K) (cbrt.f64 K)) (*.f64 (cbrt.f64 K) (+.f64 m n))) 2) M))
8.0ms
(*.f64 (*.f64 (cbrt.f64 K) (cbrt.f64 K)) (*.f64 (cbrt.f64 K) (+.f64 m n)))
6.0ms
(*.f64 (cbrt.f64 K) (cbrt.f64 K))
1.0ms
(cbrt.f64 K)

simplify142.0ms (1.6%)

Algorithm
egg-herbie
Rules
659×times-frac_binary64
493×associate-*l*_binary64
486×associate-*r*_binary64
467×unswap-sqr_binary64
280×fma-neg_binary64
Counts
228 → 199
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
04025010
17703918
231893741
341743642
449933642

prune449.0ms (5.2%)

Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New2296235
Fresh404
Picked101
Done112
Total2357242
Error
1.1b
Counts
242 → 7
Alt Table
StatusErrorProgram
14.3b
(*.f64 (cos.f64 (-.f64 (/.f64 (*.f64 (*.f64 (pow.f64 (cbrt.f64 (cbrt.f64 K)) 5) (cbrt.f64 (cbrt.f64 K))) (*.f64 (cbrt.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.4b
(*.f64 (-.f64 (*.f64 (cos.f64 (fma.f64 (/.f64 (*.f64 (cbrt.f64 K) (cbrt.f64 K)) (sqrt.f64 2)) (/.f64 (*.f64 (cbrt.f64 K) (+.f64 m n)) (sqrt.f64 2)) (neg.f64 (*.f64 M 1)))) (cos.f64 (fma.f64 (neg.f64 M) 1 (*.f64 M 1)))) (*.f64 (sin.f64 (fma.f64 (/.f64 (*.f64 (cbrt.f64 K) (cbrt.f64 K)) (sqrt.f64 2)) (/.f64 (*.f64 (cbrt.f64 K) (+.f64 m n)) (sqrt.f64 2)) (neg.f64 (*.f64 M 1)))) (sin.f64 (fma.f64 (neg.f64 M) 1 (*.f64 M 1))))) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
37.9b
(*.f64 (cos.f64 (-.f64 (/.f64 (*.f64 (cbrt.f64 K) (*.f64 (pow.f64 K 2/3) (+.f64 n m))) 2) M)) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
37.9b
(*.f64 (cos.f64 (-.f64 (/.f64 (*.f64 (*.f64 (*.f64 (cbrt.f64 (pow.f64 K 2/3)) (cbrt.f64 (pow.f64 K 2/3))) (*.f64 (cbrt.f64 (cbrt.f64 K)) (cbrt.f64 (cbrt.f64 K)))) (*.f64 (cbrt.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))))
37.8b
(*.f64 (cos.f64 (-.f64 (/.f64 (*.f64 (*.f64 (cbrt.f64 K) (pow.f64 K 1/3)) (*.f64 (cbrt.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.4b
(*.f64 (cos.f64 (-.f64 (/.f64 (*.f64 (expm1.f64 (log1p.f64 (*.f64 (cbrt.f64 K) (cbrt.f64 K)))) (*.f64 (cbrt.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.4b
(*.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 11715 to 4956 computations (57.7% saved)

regimes797.0ms (9.2%)

Accuracy

Total 0.2b remaining (17.9%)

Threshold costs 0.2b (17.9%)

Counts
106 → 1
Compiler

Compiled 22718 to 14526 computations (36.1% 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

end196.0ms (2.2%)

Remove

(sort m n)

Compiler

Compiled 430 to 289 computations (32.8% saved)

Profiling

Loading profile data...