Details

Time bar (total: 8.8s)

analyze3.0s (33.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 (23.9%)

Symmetry

(sort m n)

Results
1.7s8113×body128valid
87.0ms105×body1024invalid
64.0ms270×body128invalid
51.0ms62×body1024valid
38.0ms71×body512invalid
37.0ms20×body2048invalid
33.0ms57×body512valid
23.0ms63×body256invalid
9.0ms23×body256valid
1.0msbody2048valid
Compiler

Compiled 104 to 71 computations (31.7% saved)

simplify20.0ms (0.2%)

Algorithm
egg-herbie
Rules
446×fma-neg_binary64
251×times-frac_binary64
231×cancel-sign-sub-inv_binary64
219×exp-sum_binary64
202×distribute-rgt-in_binary64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
02245
15845
213543
344243
4175343
Stop Event
node limit
Counts
1 → 2

prune4.0ms (0%)

Pruning

1 alts after pruning (1 fresh and 0 done)

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

Compiled 128 to 83 computations (35.2% saved)

localize17.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(-.f64 (/.f64 (+.f64 m n) 2) M)
0.0b
(pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2)
0.0b
(fma.f64 K (/.f64 (+.f64 m n) 2) (neg.f64 M))
32.9b
(cos.f64 (fma.f64 K (/.f64 (+.f64 m n) 2) (neg.f64 M)))

series53.0ms (0.6%)

Counts
4 → 168
Calls

4 calls:

19.0ms
(cos.f64 (fma.f64 K (/.f64 (+.f64 m n) 2) (neg.f64 M)))
15.0ms
(pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2)
12.0ms
(fma.f64 K (/.f64 (+.f64 m n) 2) (neg.f64 M))
6.0ms
(-.f64 (/.f64 (+.f64 m n) 2) M)

rewrite64.0ms (0.7%)

Algorithm
batch-egg-rewrite
Rules
354×fma-def_binary64
241×expm1-udef_binary64
241×log1p-udef_binary64
201×fma-neg_binary64
173×egg-rr
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01351
129143
2397243
Stop Event
node limit
Counts
4 → 173
Calls

4 calls:

61.0ms
(-.f64 (/.f64 (+.f64 m n) 2) M)
61.0ms
(pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2)
61.0ms
(fma.f64 K (/.f64 (+.f64 m n) 2) (neg.f64 M))
61.0ms
(cos.f64 (fma.f64 K (/.f64 (+.f64 m n) 2) (neg.f64 M)))

simplify68.0ms (0.8%)

Algorithm
egg-herbie
Rules
523×cancel-sign-sub-inv_binary64
308×associate--r+_binary64
277×associate--l+_binary64
223×associate-*r*_binary64
185×fma-neg_binary64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01633245
15473003
220632914
Stop Event
node limit
Counts
341 → 255

prune399.0ms (4.5%)

Pruning

5 alts after pruning (5 fresh and 0 done)

PrunedKeptTotal
New2505255
Fresh000
Picked101
Done000
Total2515256
Error
1.3b
Counts
256 → 5
Alt Table
StatusErrorProgram
14.5b
(*.f64 (cos.f64 (*.f64 (cbrt.f64 (fma.f64 K (*.f64 (+.f64 m n) 1/2) M)) (pow.f64 (cbrt.f64 (fma.f64 K (*.f64 (+.f64 m n) 1/2) M)) 2))) (exp.f64 (-.f64 (fabs.f64 (-.f64 n m)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
10.2b
(*.f64 (cos.f64 (*.f64 1/2 (*.f64 K m))) (exp.f64 (-.f64 (fabs.f64 (-.f64 n m)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
1.5b
(*.f64 (cos.f64 M) (exp.f64 (-.f64 (fabs.f64 (-.f64 n m)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
14.6b
(*.f64 (-.f64 (exp.f64 (log1p.f64 (cos.f64 (fma.f64 K (*.f64 (+.f64 m n) 1/2) M)))) 1) (exp.f64 (-.f64 (fabs.f64 (-.f64 n m)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
14.6b
(*.f64 (log.f64 (+.f64 1 (expm1.f64 (cos.f64 (fma.f64 K (*.f64 (+.f64 m n) 1/2) M))))) (exp.f64 (-.f64 (fabs.f64 (-.f64 n m)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
Compiler

Compiled 9782 to 4871 computations (50.2% saved)

localize12.0ms (0.1%)

Local error

Found 3 expressions with local error:

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

series44.0ms (0.5%)

Counts
1 → 48
Calls

1 calls:

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

rewrite29.0ms (0.3%)

Algorithm
batch-egg-rewrite
Rules
176×add-sqr-sqrt_binary64
174×log1p-expm1-u_binary64
174×expm1-log1p-u_binary64
172×add-cbrt-cube_binary64
165×add-log-exp_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01424
134322
Stop Event
node limit
Counts
1 → 43
Calls

1 calls:

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

simplify44.0ms (0.5%)

Algorithm
egg-herbie
Rules
681×associate--r+_binary64
312×fma-def_binary64
265×associate--l+_binary64
251×associate-+l+_binary64
249×associate-*l*_binary64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
0691639
12501476
29361471
339511459
Stop Event
node limit
Counts
91 → 76

prune294.0ms (3.3%)

Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New2370237
Fresh044
Picked011
Done000
Total2375242
Error
1.3b
Counts
242 → 5
Alt Table
StatusErrorProgram
14.5b
(*.f64 (cos.f64 (*.f64 (cbrt.f64 (fma.f64 K (*.f64 (+.f64 m n) 1/2) M)) (pow.f64 (cbrt.f64 (fma.f64 K (*.f64 (+.f64 m n) 1/2) M)) 2))) (exp.f64 (-.f64 (fabs.f64 (-.f64 n m)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
10.2b
(*.f64 (cos.f64 (*.f64 1/2 (*.f64 K m))) (exp.f64 (-.f64 (fabs.f64 (-.f64 n m)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
1.5b
(*.f64 (cos.f64 M) (exp.f64 (-.f64 (fabs.f64 (-.f64 n m)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
14.6b
(*.f64 (-.f64 (exp.f64 (log1p.f64 (cos.f64 (fma.f64 K (*.f64 (+.f64 m n) 1/2) M)))) 1) (exp.f64 (-.f64 (fabs.f64 (-.f64 n m)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
14.6b
(*.f64 (log.f64 (+.f64 1 (expm1.f64 (cos.f64 (fma.f64 K (*.f64 (+.f64 m n) 1/2) M))))) (exp.f64 (-.f64 (fabs.f64 (-.f64 n m)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
Compiler

Compiled 7161 to 3500 computations (51.1% saved)

localize15.0ms (0.2%)

Local error

Found 4 expressions with local error:

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

series238.0ms (2.7%)

Counts
2 → 68
Calls

2 calls:

227.0ms
(*.f64 (cos.f64 (*.f64 1/2 (*.f64 K m))) (exp.f64 (-.f64 (fabs.f64 (-.f64 n m)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
11.0ms
(cos.f64 (*.f64 1/2 (*.f64 K m)))

rewrite29.0ms (0.3%)

Algorithm
batch-egg-rewrite
Rules
243×add-sqr-sqrt_binary64
235×log1p-expm1-u_binary64
235×expm1-log1p-u_binary64
233×add-cbrt-cube_binary64
227×add-log-exp_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02146
148046
Stop Event
node limit
Counts
2 → 29
Calls

2 calls:

26.0ms
(*.f64 (cos.f64 (*.f64 1/2 (*.f64 K m))) (exp.f64 (-.f64 (fabs.f64 (-.f64 n m)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
26.0ms
(cos.f64 (*.f64 1/2 (*.f64 K m)))

simplify107.0ms (1.2%)

Algorithm
egg-herbie
Rules
654×associate-*r*_binary64
441×associate-*l*_binary64
418×fma-def_binary64
326×fma-neg_binary64
296×*-commutative_binary64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
03127332
111056596
249896592
Stop Event
node limit
Counts
97 → 81

prune459.0ms (5.2%)

Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New2402242
Fresh123
Picked101
Done011
Total2425247
Error
1.3b
Counts
247 → 5
Alt Table
StatusErrorProgram
1.5b
(*.f64 (cos.f64 M) (exp.f64 (-.f64 (fabs.f64 (-.f64 n m)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
14.6b
(*.f64 (-.f64 (exp.f64 (log1p.f64 (cos.f64 (fma.f64 K (*.f64 (+.f64 m n) 1/2) M)))) 1) (exp.f64 (-.f64 (fabs.f64 (-.f64 n m)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
14.5b
(*.f64 (cos.f64 (*.f64 (cbrt.f64 (fma.f64 K (*.f64 (+.f64 m n) 1/2) M)) (pow.f64 (cbrt.f64 (fma.f64 K (*.f64 (+.f64 m n) 1/2) M)) 2))) (exp.f64 (-.f64 (fabs.f64 (-.f64 n m)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
10.2b
(*.f64 (log.f64 (+.f64 1 (expm1.f64 (cos.f64 (*.f64 1/2 (*.f64 K m)))))) (exp.f64 (-.f64 (fabs.f64 (-.f64 n m)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
10.2b
(*.f64 (pow.f64 (cbrt.f64 (cos.f64 (*.f64 1/2 (*.f64 K m)))) 3) (exp.f64 (-.f64 (fabs.f64 (-.f64 n m)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
Compiler

Compiled 13100 to 6656 computations (49.2% saved)

localize21.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.3b
(log.f64 (+.f64 1 (expm1.f64 (cos.f64 (*.f64 1/2 (*.f64 K m))))))
0.6b
(expm1.f64 (cos.f64 (*.f64 1/2 (*.f64 K m))))
0.6b
(+.f64 1 (expm1.f64 (cos.f64 (*.f64 1/2 (*.f64 K m)))))
29.4b
(cos.f64 (*.f64 1/2 (*.f64 K m)))

series367.0ms (4.2%)

Counts
3 → 72
Calls

3 calls:

349.0ms
(log.f64 (+.f64 1 (expm1.f64 (cos.f64 (*.f64 1/2 (*.f64 K m))))))
9.0ms
(expm1.f64 (cos.f64 (*.f64 1/2 (*.f64 K m))))
9.0ms
(+.f64 1 (expm1.f64 (cos.f64 (*.f64 1/2 (*.f64 K m)))))

rewrite51.0ms (0.6%)

Algorithm
batch-egg-rewrite
Rules
875×log1p-expm1-u_binary64
875×expm1-log1p-u_binary64
462×prod-diff_binary64
96×add-sqr-sqrt_binary64
89×add-cbrt-cube_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01131
120631
2236831
Stop Event
node limit
Counts
3 → 84
Calls

3 calls:

50.0ms
(log.f64 (+.f64 1 (expm1.f64 (cos.f64 (*.f64 1/2 (*.f64 K m))))))
50.0ms
(expm1.f64 (cos.f64 (*.f64 1/2 (*.f64 K m))))
50.0ms
(+.f64 1 (expm1.f64 (cos.f64 (*.f64 1/2 (*.f64 K m)))))

simplify44.0ms (0.5%)

Algorithm
egg-herbie
Rules
493×distribute-rgt-neg-in_binary64
471×distribute-lft-neg-in_binary64
418×associate-*l*_binary64
416×associate-*r*_binary64
327×fma-def_binary64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
0651176
12001144
26921110
334191108
Stop Event
node limit
Counts
156 → 110

prune205.0ms (2.3%)

Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New1302132
Fresh123
Picked101
Done011
Total1325137
Error
1.3b
Counts
137 → 5
Alt Table
StatusErrorProgram
1.5b
(*.f64 (cos.f64 M) (exp.f64 (-.f64 (fabs.f64 (-.f64 n m)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
14.6b
(*.f64 (-.f64 (exp.f64 (log1p.f64 (cos.f64 (fma.f64 K (*.f64 (+.f64 m n) 1/2) M)))) 1) (exp.f64 (-.f64 (fabs.f64 (-.f64 n m)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
10.3b
(*.f64 (log.f64 (*.f64 (cbrt.f64 (exp.f64 (cos.f64 (*.f64 1/2 (*.f64 K m))))) (pow.f64 (cbrt.f64 (exp.f64 (cos.f64 (*.f64 1/2 (*.f64 K m))))) 2))) (exp.f64 (-.f64 (fabs.f64 (-.f64 n m)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
10.2b
(*.f64 (log.f64 (+.f64 1 (log.f64 (exp.f64 (expm1.f64 (cos.f64 (*.f64 1/2 (*.f64 K m)))))))) (exp.f64 (-.f64 (fabs.f64 (-.f64 n m)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
14.5b
(*.f64 (cos.f64 (*.f64 (cbrt.f64 (fma.f64 K (*.f64 (+.f64 m n) 1/2) M)) (pow.f64 (cbrt.f64 (fma.f64 K (*.f64 (+.f64 m n) 1/2) M)) 2))) (exp.f64 (-.f64 (fabs.f64 (-.f64 n m)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
Compiler

Compiled 4747 to 2910 computations (38.7% saved)

regimes992.0ms (11.3%)

Accuracy

Total 0.2b remaining (17.7%)

Threshold costs 0.2b (17.7%)

Counts
148 → 1
Compiler

Compiled 26546 to 18996 computations (28.4% 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
02341
13641
25341
36841
47741
58041
Stop Event
saturated

end135.0ms (1.5%)

Remove

(sort m n)

Compiler

Compiled 308 to 223 computations (27.6% saved)

Profiling

Loading profile data...