Details

Time bar (total: 19.4s)

analyze777.0ms (4%)

Algorithm
search
Search
TrueOtherFalseIter
0%99.8%0.2%0
0%99.8%0.2%1
0%99.8%0.2%2
49.9%49.9%0.2%3
49.9%49.9%0.2%4
49.9%49.9%0.2%5
49.9%49.9%0.2%6
74.9%25%0.2%7
74.9%25%0.2%8
74.9%25%0.2%9
74.9%25%0.2%10
87.3%12.5%0.2%11
87.3%12.5%0.2%12
87.3%12.5%0.2%13
87.3%12.5%0.2%14
Compiler

Compiled 34 to 30 computations (11.8% saved)

sample4.7s (24.3%)

Symmetry

(sort kx ky)

Results
2.2s6612×body128valid
1.7s788×body1024valid
532.0ms568×body512valid
162.0ms286×body256valid
4.0msbody2048valid
Compiler

Compiled 101 to 89 computations (11.9% saved)

simplify54.0ms (0.3%)

Algorithm
egg-herbie
Rules
665×fma-def_binary64
575×associate-*l*_binary64
512×unswap-sqr_binary64
437×associate-*r*_binary64
369×associate-/r/_binary64
Counts
1 → 2
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
02442
15637
211337
346537
4214937
5498237
6484737
7496437

prune4.0ms (0%)

Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New112
Fresh101
Picked000
Done000
Total213
Error
0.8b
Counts
3 → 1
Alt Table
StatusErrorProgram
0.8b
(sqrt.f64 (+.f64 1/2 (/.f64 1/2 (sqrt.f64 (fma.f64 (pow.f64 (/.f64 (*.f64 2 l) Om) 2) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2)) 1)))))
Compiler

Compiled 113 to 95 computations (15.9% saved)

localize20.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.3b
(pow.f64 (sin.f64 ky) 2)
0.3b
(pow.f64 (sin.f64 kx) 2)
1.7b
(fma.f64 (pow.f64 (/.f64 (*.f64 2 l) Om) 2) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2)) 1)
8.2b
(sqrt.f64 (fma.f64 (pow.f64 (/.f64 (*.f64 2 l) Om) 2) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2)) 1))

series354.0ms (1.8%)

Counts
4 → 104
Calls

4 calls:

238.0ms
(sqrt.f64 (fma.f64 (pow.f64 (/.f64 (*.f64 2 l) Om) 2) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2)) 1))
108.0ms
(fma.f64 (pow.f64 (/.f64 (*.f64 2 l) Om) 2) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2)) 1)
4.0ms
(pow.f64 (sin.f64 kx) 2)
3.0ms
(pow.f64 (sin.f64 ky) 2)

rewrite7.0ms (0%)

Algorithm
rewrite-expression-head
Rules
10×add-sqr-sqrt_binary64
*-un-lft-identity_binary64
add-cube-cbrt_binary64
pow1_binary64
pow-unpow_binary64
Counts
4 → 65
Calls

4 calls:

2.0ms
(pow.f64 (sin.f64 ky) 2)
2.0ms
(pow.f64 (sin.f64 kx) 2)
1.0ms
(sqrt.f64 (fma.f64 (pow.f64 (/.f64 (*.f64 2 l) Om) 2) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2)) 1))
0.0ms
(fma.f64 (pow.f64 (/.f64 (*.f64 2 l) Om) 2) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2)) 1)

simplify151.0ms (0.8%)

Algorithm
egg-herbie
Rules
527×cancel-sign-sub-inv_binary64
299×unswap-sqr_binary64
244×fma-neg_binary64
216×fma-def_binary64
206×associate-*r*_binary64
Counts
169 → 161
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
03487820
19707080
235407073
351107073

prune310.0ms (1.6%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New1583161
Fresh000
Picked101
Done000
Total1593162
Error
0.0b
Counts
162 → 3
Alt Table
StatusErrorProgram
29.3b
(sqrt.f64 (+.f64 1/2 (/.f64 1/2 (fma.f64 1/2 (*.f64 Om (sqrt.f64 (/.f64 1/4 (*.f64 (*.f64 l l) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2)))))) (/.f64 (sqrt.f64 (*.f64 4 (*.f64 (*.f64 l l) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2))))) Om)))))
0.8b
(sqrt.f64 (+.f64 1/2 (/.f64 1/2 (*.f64 (sqrt.f64 (sqrt.f64 (fma.f64 (pow.f64 (/.f64 (*.f64 2 l) Om) 2) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2)) 1))) (sqrt.f64 (sqrt.f64 (fma.f64 (pow.f64 (/.f64 (*.f64 2 l) Om) 2) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2)) 1)))))))
32.6b
(sqrt.f64 (+.f64 1/2 (/.f64 1/2 (fma.f64 l (sqrt.f64 (*.f64 4 (+.f64 (/.f64 (pow.f64 (sin.f64 ky) 2) (*.f64 Om Om)) (/.f64 (pow.f64 (sin.f64 kx) 2) (*.f64 Om Om))))) (*.f64 1/2 (/.f64 (sqrt.f64 (/.f64 1/4 (+.f64 (/.f64 (pow.f64 (sin.f64 ky) 2) (*.f64 Om Om)) (/.f64 (pow.f64 (sin.f64 kx) 2) (*.f64 Om Om))))) l))))))
Compiler

Compiled 7993 to 5703 computations (28.7% saved)

localize22.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.3b
(pow.f64 (sin.f64 kx) 2)
1.7b
(fma.f64 (pow.f64 (/.f64 (*.f64 2 l) Om) 2) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2)) 1)
7.4b
(sqrt.f64 (sqrt.f64 (fma.f64 (pow.f64 (/.f64 (*.f64 2 l) Om) 2) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2)) 1)))
8.2b
(sqrt.f64 (fma.f64 (pow.f64 (/.f64 (*.f64 2 l) Om) 2) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2)) 1))

series4.8s (24.9%)

Counts
1 → 48
Calls

1 calls:

4.8s
(sqrt.f64 (sqrt.f64 (fma.f64 (pow.f64 (/.f64 (*.f64 2 l) Om) 2) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2)) 1)))

rewrite3.0ms (0%)

Algorithm
rewrite-expression-head
Rules
10×sqrt-prod_binary64
add-sqr-sqrt_binary64
sqrt-pow1_binary64
*-un-lft-identity_binary64
add-cube-cbrt_binary64
Counts
1 → 21
Calls

1 calls:

2.0ms
(sqrt.f64 (sqrt.f64 (fma.f64 (pow.f64 (/.f64 (*.f64 2 l) Om) 2) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2)) 1)))

simplify123.0ms (0.6%)

Algorithm
egg-herbie
Rules
798×fma-def_binary64
377×cancel-sign-sub-inv_binary64
373×unswap-sqr_binary64
170×associate-*r*_binary64
141×associate-/l*_binary64
Counts
69 → 78
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
02665973
17865672
230505526
351045526

prune883.0ms (4.6%)

Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New4160416
Fresh022
Picked011
Done000
Total4163419
Error
0.0b
Counts
419 → 3
Alt Table
StatusErrorProgram
29.3b
(sqrt.f64 (+.f64 1/2 (/.f64 1/2 (fma.f64 1/2 (*.f64 Om (sqrt.f64 (/.f64 1/4 (*.f64 (*.f64 l l) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2)))))) (/.f64 (sqrt.f64 (*.f64 4 (*.f64 (*.f64 l l) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2))))) Om)))))
0.8b
(sqrt.f64 (+.f64 1/2 (/.f64 1/2 (*.f64 (sqrt.f64 (sqrt.f64 (fma.f64 (pow.f64 (/.f64 (*.f64 2 l) Om) 2) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2)) 1))) (sqrt.f64 (sqrt.f64 (fma.f64 (pow.f64 (/.f64 (*.f64 2 l) Om) 2) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2)) 1)))))))
32.6b
(sqrt.f64 (+.f64 1/2 (/.f64 1/2 (fma.f64 l (sqrt.f64 (*.f64 4 (+.f64 (/.f64 (pow.f64 (sin.f64 ky) 2) (*.f64 Om Om)) (/.f64 (pow.f64 (sin.f64 kx) 2) (*.f64 Om Om))))) (*.f64 1/2 (/.f64 (sqrt.f64 (/.f64 1/4 (+.f64 (/.f64 (pow.f64 (sin.f64 ky) 2) (*.f64 Om Om)) (/.f64 (pow.f64 (sin.f64 kx) 2) (*.f64 Om Om))))) l))))))
Compiler

Compiled 35400 to 25173 computations (28.9% saved)

localize24.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.9b
(/.f64 (sqrt.f64 (*.f64 4 (*.f64 (*.f64 l l) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2))))) Om)
1.5b
(*.f64 (*.f64 l l) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2)))
27.5b
(sqrt.f64 (/.f64 1/4 (*.f64 (*.f64 l l) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2)))))
28.1b
(sqrt.f64 (*.f64 4 (*.f64 (*.f64 l l) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2)))))

series497.0ms (2.6%)

Counts
4 → 156
Calls

4 calls:

235.0ms
(sqrt.f64 (/.f64 1/4 (*.f64 (*.f64 l l) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2)))))
129.0ms
(/.f64 (sqrt.f64 (*.f64 4 (*.f64 (*.f64 l l) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2))))) Om)
84.0ms
(sqrt.f64 (*.f64 4 (*.f64 (*.f64 l l) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2)))))
48.0ms
(*.f64 (*.f64 l l) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2)))

rewrite50.0ms (0.3%)

Algorithm
rewrite-expression-head
Rules
20×*-un-lft-identity_binary64
20×pow1_binary64
18×add-sqr-sqrt_binary64
16×add-cube-cbrt_binary64
15×times-frac_binary64
Counts
4 → 101
Calls

4 calls:

13.0ms
(/.f64 (sqrt.f64 (*.f64 4 (*.f64 (*.f64 l l) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2))))) Om)
10.0ms
(*.f64 (*.f64 l l) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2)))
10.0ms
(sqrt.f64 (*.f64 4 (*.f64 (*.f64 l l) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2)))))
9.0ms
(sqrt.f64 (/.f64 1/4 (*.f64 (*.f64 l l) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2)))))

simplify184.0ms (1%)

Algorithm
egg-herbie
Rules
276×fma-neg_binary64
234×associate-*r*_binary64
234×associate-/r*_binary64
225×times-frac_binary64
222×associate-*l*_binary64
Counts
257 → 237
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
03807760
110786797
240616715
349156715
449536715

prune425.0ms (2.2%)

Pruning

3 alts after pruning (1 fresh and 2 done)

PrunedKeptTotal
New2920292
Fresh011
Picked011
Done011
Total2923295
Error
0.0b
Counts
295 → 3
Alt Table
StatusErrorProgram
29.3b
(sqrt.f64 (+.f64 1/2 (/.f64 1/2 (fma.f64 1/2 (*.f64 Om (sqrt.f64 (/.f64 1/4 (*.f64 (*.f64 l l) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2)))))) (/.f64 (sqrt.f64 (*.f64 4 (*.f64 (*.f64 l l) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2))))) Om)))))
0.8b
(sqrt.f64 (+.f64 1/2 (/.f64 1/2 (*.f64 (sqrt.f64 (sqrt.f64 (fma.f64 (pow.f64 (/.f64 (*.f64 2 l) Om) 2) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2)) 1))) (sqrt.f64 (sqrt.f64 (fma.f64 (pow.f64 (/.f64 (*.f64 2 l) Om) 2) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2)) 1)))))))
32.6b
(sqrt.f64 (+.f64 1/2 (/.f64 1/2 (fma.f64 l (sqrt.f64 (*.f64 4 (+.f64 (/.f64 (pow.f64 (sin.f64 ky) 2) (*.f64 Om Om)) (/.f64 (pow.f64 (sin.f64 kx) 2) (*.f64 Om Om))))) (*.f64 1/2 (/.f64 (sqrt.f64 (/.f64 1/4 (+.f64 (/.f64 (pow.f64 (sin.f64 ky) 2) (*.f64 Om Om)) (/.f64 (pow.f64 (sin.f64 kx) 2) (*.f64 Om Om))))) l))))))
Compiler

Compiled 16151 to 10085 computations (37.6% saved)

localize25.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
6.1b
(/.f64 (pow.f64 (sin.f64 kx) 2) (*.f64 Om Om))
7.3b
(/.f64 (pow.f64 (sin.f64 ky) 2) (*.f64 Om Om))
30.9b
(sqrt.f64 (/.f64 1/4 (+.f64 (/.f64 (pow.f64 (sin.f64 ky) 2) (*.f64 Om Om)) (/.f64 (pow.f64 (sin.f64 kx) 2) (*.f64 Om Om)))))
30.9b
(sqrt.f64 (*.f64 4 (+.f64 (/.f64 (pow.f64 (sin.f64 ky) 2) (*.f64 Om Om)) (/.f64 (pow.f64 (sin.f64 kx) 2) (*.f64 Om Om)))))

series641.0ms (3.3%)

Counts
4 → 120
Calls

4 calls:

403.0ms
(sqrt.f64 (/.f64 1/4 (+.f64 (/.f64 (pow.f64 (sin.f64 ky) 2) (*.f64 Om Om)) (/.f64 (pow.f64 (sin.f64 kx) 2) (*.f64 Om Om)))))
169.0ms
(sqrt.f64 (*.f64 4 (+.f64 (/.f64 (pow.f64 (sin.f64 ky) 2) (*.f64 Om Om)) (/.f64 (pow.f64 (sin.f64 kx) 2) (*.f64 Om Om)))))
34.0ms
(/.f64 (pow.f64 (sin.f64 ky) 2) (*.f64 Om Om))
34.0ms
(/.f64 (pow.f64 (sin.f64 kx) 2) (*.f64 Om Om))

rewrite50.0ms (0.3%)

Algorithm
rewrite-expression-head
Rules
50×times-frac_binary64
41×*-un-lft-identity_binary64
30×add-exp-log_binary64
29×sqrt-prod_binary64
26×add-sqr-sqrt_binary64
Counts
4 → 132
Calls

4 calls:

17.0ms
(sqrt.f64 (/.f64 1/4 (+.f64 (/.f64 (pow.f64 (sin.f64 ky) 2) (*.f64 Om Om)) (/.f64 (pow.f64 (sin.f64 kx) 2) (*.f64 Om Om)))))
13.0ms
(sqrt.f64 (*.f64 4 (+.f64 (/.f64 (pow.f64 (sin.f64 ky) 2) (*.f64 Om Om)) (/.f64 (pow.f64 (sin.f64 kx) 2) (*.f64 Om Om)))))
6.0ms
(/.f64 (pow.f64 (sin.f64 ky) 2) (*.f64 Om Om))
5.0ms
(/.f64 (pow.f64 (sin.f64 kx) 2) (*.f64 Om Om))

simplify176.0ms (0.9%)

Algorithm
egg-herbie
Rules
798×fma-def_binary64
284×times-frac_binary64
257×associate-/r*_binary64
215×fma-neg_binary64
214×associate-/l*_binary64
Counts
252 → 228
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
04136807
19596321
236515907
348965907
449515907

prune462.0ms (2.4%)

Pruning

3 alts after pruning (0 fresh and 3 done)

PrunedKeptTotal
New3400340
Fresh000
Picked011
Done022
Total3403343
Error
0.0b
Counts
343 → 3
Alt Table
StatusErrorProgram
29.3b
(sqrt.f64 (+.f64 1/2 (/.f64 1/2 (fma.f64 1/2 (*.f64 Om (sqrt.f64 (/.f64 1/4 (*.f64 (*.f64 l l) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2)))))) (/.f64 (sqrt.f64 (*.f64 4 (*.f64 (*.f64 l l) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2))))) Om)))))
0.8b
(sqrt.f64 (+.f64 1/2 (/.f64 1/2 (*.f64 (sqrt.f64 (sqrt.f64 (fma.f64 (pow.f64 (/.f64 (*.f64 2 l) Om) 2) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2)) 1))) (sqrt.f64 (sqrt.f64 (fma.f64 (pow.f64 (/.f64 (*.f64 2 l) Om) 2) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2)) 1)))))))
32.6b
(sqrt.f64 (+.f64 1/2 (/.f64 1/2 (fma.f64 l (sqrt.f64 (*.f64 4 (+.f64 (/.f64 (pow.f64 (sin.f64 ky) 2) (*.f64 Om Om)) (/.f64 (pow.f64 (sin.f64 kx) 2) (*.f64 Om Om))))) (*.f64 1/2 (/.f64 (sqrt.f64 (/.f64 1/4 (+.f64 (/.f64 (pow.f64 (sin.f64 ky) 2) (*.f64 Om Om)) (/.f64 (pow.f64 (sin.f64 kx) 2) (*.f64 Om Om))))) l))))))
Compiler

Compiled 20566 to 11931 computations (42% saved)

regimes4.4s (22.9%)

Accuracy

Total 0.6b remaining (56.4%)

Threshold costs 0.6b (56.4%)

Counts
171 → 1
Compiler

Compiled 130160 to 101463 computations (22% saved)

simplify3.0ms (0%)

Algorithm
egg-herbie
Rules
+-commutative_binary64
*-commutative_binary64
1-exp_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02372
12872
22772

end152.0ms (0.8%)

Remove

(sort kx ky)

Compiler

Compiled 352 to 270 computations (23.3% saved)

Profiling

Loading profile data...