Details

Time bar (total: 8.2s)

analyze2.9s (34.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)

sample107.0ms (1.3%)

Algorithm
intervals
Symmetry

(sort m n)

Results
38.0ms253×body128valid
1.0ms11×body128invalid
1.0msbody1024invalid
1.0msbody2048invalid
1.0msbody512invalid
1.0msbody1024valid
0.0msbody512valid
0.0msbody256valid
0.0msbody256invalid
Compiler

Compiled 74 to 52 computations (29.7% saved)

simplify60.0ms (0.7%)

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
12.7b
Counts
3 → 1
Alt Table
StatusErrorProgram
12.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)

localize18.0ms (0.2%)

Local error

Found 4 expressions with local error:

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

series59.0ms (0.7%)

Counts
4 → 156
Calls

4 calls:

26.0ms
(cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M))
19.0ms
(pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2)
8.0ms
(/.f64 (*.f64 K (+.f64 m n)) 2)
6.0ms
(*.f64 K (+.f64 m n))

rewrite36.0ms (0.4%)

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

4 calls:

10.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 (*.f64 K (+.f64 m n)) 2)
5.0ms
(*.f64 K (+.f64 m n))

simplify159.0ms (1.9%)

Algorithm
egg-herbie
Rules
429×fma-neg_binary64
332×associate-*r*_binary64
300×associate-*l*_binary64
225×*-commutative_binary64
213×fma-def_binary64
Counts
264 → 231
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
04386329
19035067
231364940
347794856
449394856

prune389.0ms (4.8%)

Pruning

4 alts after pruning (4 fresh and 0 done)

PrunedKeptTotal
New2274231
Fresh000
Picked101
Done000
Total2284232
Error
0.7b
Counts
232 → 4
Alt Table
StatusErrorProgram
12.6b
(*.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.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))))
12.7b
(*.f64 (log.f64 (exp.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))))
7.6b
(*.f64 (cos.f64 (-.f64 (*.f64 1/2 (*.f64 K m)) M)) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
Compiler

Compiled 10000 to 4774 computations (52.3% saved)

localize15.0ms (0.2%)

Local error

Found 3 expressions with local error:

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

series98.0ms (1.2%)

Counts
2 → 96
Calls

2 calls:

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

rewrite44.0ms (0.5%)

Algorithm
rewrite-expression-head
Rules
63×*-un-lft-identity_binary64
50×add-sqr-sqrt_binary64
36×prod-diff_binary64
26×fabs-mul_binary64
24×add-cube-cbrt_binary64
Counts
2 → 98
Calls

2 calls:

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

simplify272.0ms (3.3%)

Algorithm
egg-herbie
Rules
699×fma-neg_binary64
495×distribute-rgt-in_binary64
451×cancel-sign-sub-inv_binary64
357×sub-neg_binary64
202×fma-def_binary64
Counts
194 → 184
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
02307742
16826065
221895159
344115151
449875151
549975151
649255151

prune429.0ms (5.3%)

Pruning

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New2450245
Fresh033
Picked011
Done000
Total2454249
Error
0.7b
Counts
249 → 4
Alt Table
StatusErrorProgram
12.6b
(*.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.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))))
12.7b
(*.f64 (log.f64 (exp.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))))
7.6b
(*.f64 (cos.f64 (-.f64 (*.f64 1/2 (*.f64 K m)) M)) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
Compiler

Compiled 9043 to 4510 computations (50.1% saved)

localize18.0ms (0.2%)

Local error

Found 4 expressions with local error:

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

series24.0ms (0.3%)

Counts
3 → 21
Calls

3 calls:

12.0ms
(cos.f64 (-.f64 (*.f64 1/2 (*.f64 K m)) M))
7.0ms
(-.f64 (*.f64 1/2 (*.f64 K m)) M)
5.0ms
(*.f64 1/2 (*.f64 K m))

rewrite58.0ms (0.7%)

Algorithm
rewrite-expression-head
Rules
add-cbrt-cube_binary64
add-exp-log_binary64
pow1_binary64
*-un-lft-identity_binary64
add-sqr-sqrt_binary64
Counts
3 → 57
Calls

3 calls:

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

simplify102.0ms (1.3%)

Algorithm
egg-herbie
Rules
585×fma-neg_binary64
559×cancel-sign-sub-inv_binary64
383×*-commutative_binary64
365×neg-mul-1_binary64
364×fma-def_binary64
Counts
78 → 84
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
01691319
13111247
210471184
323801162
445651162
549881162

prune256.0ms (3.1%)

Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New1423145
Fresh112
Picked101
Done011
Total1445149
Error
0.7b
Counts
149 → 5
Alt Table
StatusErrorProgram
12.6b
(*.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.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))))
29.7b
(*.f64 (cos.f64 (-.f64 (*.f64 (sqrt.f64 (*.f64 1/2 (*.f64 K m))) (sqrt.f64 (*.f64 1/2 (*.f64 K m)))) M)) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
7.6b
(*.f64 (log.f64 (exp.f64 (cos.f64 (-.f64 (*.f64 1/2 (*.f64 K m)) M)))) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
7.6b
(*.f64 (log1p.f64 (expm1.f64 (cos.f64 (-.f64 (*.f64 1/2 (*.f64 K m)) M)))) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
Compiler

Compiled 5294 to 2762 computations (47.8% saved)

localize23.0ms (0.3%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2)
0.1b
(exp.f64 (cos.f64 (-.f64 (*.f64 1/2 (*.f64 K m)) M)))
0.6b
(log.f64 (exp.f64 (cos.f64 (-.f64 (*.f64 1/2 (*.f64 K m)) M))))
23.0b
(cos.f64 (-.f64 (*.f64 1/2 (*.f64 K m)) M))

series40.0ms (0.5%)

Counts
2 → 48
Calls

2 calls:

28.0ms
(exp.f64 (cos.f64 (-.f64 (*.f64 1/2 (*.f64 K m)) M)))
12.0ms
(log.f64 (exp.f64 (cos.f64 (-.f64 (*.f64 1/2 (*.f64 K m)) M))))

rewrite19.0ms (0.2%)

Algorithm
rewrite-expression-head
Rules
14×exp-diff_binary64
14×cos-sum_binary64
*-un-lft-identity_binary64
add-sqr-sqrt_binary64
add-cube-cbrt_binary64
Counts
2 → 46
Calls

2 calls:

10.0ms
(exp.f64 (cos.f64 (-.f64 (*.f64 1/2 (*.f64 K m)) M)))
6.0ms
(log.f64 (exp.f64 (cos.f64 (-.f64 (*.f64 1/2 (*.f64 K m)) M))))

simplify95.0ms (1.2%)

Algorithm
egg-herbie
Rules
624×cancel-sign-sub-inv_binary64
387×neg-mul-1_binary64
383×neg-sub0_binary64
266×unsub-neg_binary64
260×associate--l+_binary64
Counts
94 → 96
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
02412707
14802566
217532345
342152258
449972258

prune398.0ms (4.9%)

Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New1912193
Fresh033
Picked101
Done011
Total1926198
Error
0.7b
Counts
198 → 6
Alt Table
StatusErrorProgram
12.6b
(*.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.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))))
29.7b
(*.f64 (cos.f64 (-.f64 (*.f64 (sqrt.f64 (*.f64 1/2 (*.f64 K m))) (sqrt.f64 (*.f64 1/2 (*.f64 K m)))) M)) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
7.7b
(*.f64 (log.f64 (*.f64 (*.f64 (cbrt.f64 (exp.f64 (cos.f64 (-.f64 (*.f64 1/2 (*.f64 K m)) M)))) (cbrt.f64 (exp.f64 (cos.f64 (-.f64 (*.f64 1/2 (*.f64 K m)) M))))) (cbrt.f64 (exp.f64 (cos.f64 (-.f64 (*.f64 1/2 (*.f64 K m)) M)))))) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
7.6b
(*.f64 (log.f64 (exp.f64 (*.f64 (*.f64 (cbrt.f64 (cos.f64 (-.f64 (*.f64 1/2 (*.f64 K m)) M))) (cbrt.f64 (cos.f64 (-.f64 (*.f64 1/2 (*.f64 K m)) M)))) (cbrt.f64 (cos.f64 (-.f64 (*.f64 1/2 (*.f64 K m)) M)))))) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
7.6b
(*.f64 (log1p.f64 (expm1.f64 (cos.f64 (-.f64 (*.f64 1/2 (*.f64 K m)) M)))) (exp.f64 (-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))))
Compiler

Compiled 8283 to 4385 computations (47.1% saved)

regimes595.0ms (7.3%)

Accuracy

Total 0.2b remaining (12%)

Threshold costs 0.2b (12%)

Counts
80 → 1
Compiler

Compiled 15092 to 10404 computations (31.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

end8.0ms (0.1%)

Remove

(sort m n)

Compiler

Compiled 75 to 54 computations (28% saved)

sample2.0s (24.3%)

Algorithm
intervals
Results
1.1s7830×body128valid
58.0ms99×body1024invalid
51.0ms84×body1024valid
42.0ms299×body128invalid
33.0ms86×body512invalid
23.0ms55×body512valid
22.0ms25×body2048invalid
10.0ms42×body256invalid
8.0ms30×body256valid
3.0msbody2048valid
Compiler

Compiled 312 to 217 computations (30.4% saved)

Profiling

Loading profile data...