Details

Time bar (total: 14.3s)

analyze3.1s (21.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 (14.9%)

Symmetry

(sort m n)

Results
1.7s8106×body128valid
70.0ms87×body1024invalid
64.0ms287×body128invalid
54.0ms86×body512invalid
42.0ms52×body1024valid
33.0ms60×body512valid
28.0ms21×body2048invalid
22.0ms57×body256invalid
14.0ms37×body256valid
1.0msbody2048valid
Compiler

Compiled 104 to 71 computations (31.7% saved)

simplify59.0ms (0.4%)

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)

localize20.0ms (0.1%)

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)
35.4b
(cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M))

series85.0ms (0.6%)

Counts
4 → 168
Calls

4 calls:

44.0ms
(-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))
21.0ms
(cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M))
14.0ms
(pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2)
6.0ms
(*.f64 K (+.f64 m n))

rewrite59.0ms (0.4%)

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:

20.0ms
(-.f64 (fabs.f64 (-.f64 m n)) (+.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)
4.0ms
(*.f64 K (+.f64 m n))

simplify202.0ms (1.4%)

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

prune365.0ms (2.6%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New3023305
Fresh000
Picked101
Done000
Total3033306
Error
0.8b
Counts
306 → 3
Alt Table
StatusErrorProgram
28.6b
(*.f64 (cos.f64 (-.f64 (/.f64 (expm1.f64 (log1p.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.4b
(*.f64 (expm1.f64 (log1p.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.8b
(*.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 14930 to 7231 computations (51.6% saved)

localize14.0ms (0.1%)

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)

prune175.0ms (1.2%)

Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New1830183
Fresh022
Picked011
Done000
Total1833186
Error
0.8b
Counts
186 → 3
Alt Table
StatusErrorProgram
28.6b
(*.f64 (cos.f64 (-.f64 (/.f64 (expm1.f64 (log1p.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.4b
(*.f64 (expm1.f64 (log1p.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.8b
(*.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 7335 to 3680 computations (49.8% saved)

localize21.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2)
0.2b
(expm1.f64 (log1p.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M))))
0.5b
(log1p.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M)))
35.4b
(cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M))

series1.5s (10.1%)

Counts
2 → 96
Calls

2 calls:

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

rewrite1.0ms (0%)

Algorithm
rewrite-expression-head
Rules
expm1-log1p-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
(log1p.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M)))
0.0ms
(expm1.f64 (log1p.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M))))

simplify84.0ms (0.6%)

Algorithm
egg-herbie
Rules
504×associate-*r*_binary64
350×associate-*l*_binary64
295×fma-def_binary64
271×associate-/l*_binary64
215×times-frac_binary64
Counts
118 → 103
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
03595081
111704668
252134668

prune323.0ms (2.3%)

Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New2431244
Fresh011
Picked101
Done011
Total2443247
Error
0.8b
Counts
247 → 3
Alt Table
StatusErrorProgram
14.4b
(*.f64 (*.f64 (*.f64 (cbrt.f64 (expm1.f64 (log1p.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M))))) (cbrt.f64 (expm1.f64 (log1p.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M)))))) (cbrt.f64 (expm1.f64 (log1p.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))))
28.6b
(*.f64 (cos.f64 (-.f64 (/.f64 (expm1.f64 (log1p.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.8b
(*.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 14473 to 7519 computations (48% saved)

localize23.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.4b
(*.f64 (cbrt.f64 (expm1.f64 (log1p.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M))))) (cbrt.f64 (expm1.f64 (log1p.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M))))))
0.5b
(log1p.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M)))
0.5b
(cbrt.f64 (expm1.f64 (log1p.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M)))))
35.4b
(cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M))

series3.5s (24.8%)

Counts
2 → 96
Calls

2 calls:

1.9s
(*.f64 (cbrt.f64 (expm1.f64 (log1p.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M))))) (cbrt.f64 (expm1.f64 (log1p.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M))))))
1.6s
(cbrt.f64 (expm1.f64 (log1p.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M)))))

rewrite14.0ms (0.1%)

Algorithm
rewrite-expression-head
Rules
19×add-sqr-sqrt_binary64
19×cbrt-prod_binary64
11×*-un-lft-identity_binary64
11×add-cube-cbrt_binary64
pow1_binary64
Counts
2 → 55
Calls

2 calls:

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

simplify131.0ms (0.9%)

Algorithm
egg-herbie
Rules
871×associate-*r*_binary64
769×associate-*l*_binary64
424×fma-def_binary64
177×*-commutative_binary64
135×sqr-pow_binary64
Counts
151 → 153
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
04477490
114426897
250896897

prune1.7s (11.8%)

Pruning

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New6612663
Fresh011
Picked101
Done011
Total6624666
Error
0.8b
Counts
666 → 4
Alt Table
StatusErrorProgram
14.4b
(*.f64 (*.f64 (*.f64 (cbrt.f64 (expm1.f64 (log1p.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M))))) (cbrt.f64 (expm1.f64 (log1p.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M)))))) (expm1.f64 (log1p.f64 (cbrt.f64 (expm1.f64 (log1p.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 (*.f64 (*.f64 (cbrt.f64 (expm1.f64 (log1p.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M))))) (cbrt.f64 (expm1.f64 (log1p.f64 (cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M)))))) (cbrt.f64 (expm1.f64 (log1p.f64 (-.f64 (*.f64 (cos.f64 (*.f64 M 0)) (cos.f64 (fma.f64 (/.f64 K (*.f64 (cbrt.f64 2) (cbrt.f64 2))) (/.f64 (+.f64 n m) (cbrt.f64 2)) (neg.f64 M)))) (*.f64 (sin.f64 (*.f64 M 0)) (sin.f64 (fma.f64 (/.f64 K (*.f64 (cbrt.f64 2) (cbrt.f64 2))) (/.f64 (+.f64 n m) (cbrt.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))))
28.6b
(*.f64 (cos.f64 (-.f64 (/.f64 (expm1.f64 (log1p.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.8b
(*.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 66883 to 36875 computations (44.9% saved)

regimes669.0ms (4.7%)

Accuracy

Total 0.2b remaining (15.3%)

Threshold costs 0.2b (15.3%)

Counts
80 → 1
Compiler

Compiled 17402 to 11880 computations (31.7% 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
01833
13233
24733
36133
46933
57233
67233

end164.0ms (1.2%)

Remove

(sort m n)

Compiler

Compiled 329 to 231 computations (29.8% saved)

Profiling

Loading profile data...