Details

Time bar (total: 14.4s)

analyze914.0ms (6.3%)

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.2s (29.2%)

Symmetry

(sort kx ky)

Results
2.1s6612×body128valid
1.1s751×body1024valid
675.0ms575×body512valid
204.0ms318×body256valid
Compiler

Compiled 101 to 89 computations (11.9% saved)

simplify54.0ms (0.4%)

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

prune5.0ms (0%)

Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New112
Fresh101
Picked000
Done000
Total213
Error
1.5b
Counts
3 → 1
Alt Table
StatusErrorProgram
1.5b
(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.7b
(/.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)))
3.0b
(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.9b
(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))

series1.2s (8.4%)

Counts
4 → 148
Calls

4 calls:

880.0ms
(/.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)))
225.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))
100.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 ky) 2)

rewrite12.0ms (0.1%)

Algorithm
rewrite-expression-head
Rules
23×add-sqr-sqrt_binary64
22×*-un-lft-identity_binary64
22×add-cube-cbrt_binary64
18×times-frac_binary64
15×sqrt-prod_binary64
Counts
4 → 86
Calls

4 calls:

4.0ms
(/.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)))
2.0ms
(pow.f64 (sin.f64 ky) 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)

simplify262.0ms (1.8%)

Algorithm
egg-herbie
Rules
417×fma-neg_binary64
342×fma-def_binary64
271×associate-*r*_binary64
200×associate-*l*_binary64
200×associate-*r/_binary64
Counts
234 → 225
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
047614253
1137413174
2495513168
3526713168

prune1.1s (7.7%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New2223225
Fresh000
Picked101
Done000
Total2233226
Error
0.6b
Counts
226 → 3
Alt Table
StatusErrorProgram
33.5b
(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))))))
1.5b
(sqrt.f64 (+.f64 1/2 (log.f64 (exp.f64 (/.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)))))))
25.0b
(sqrt.f64 (+.f64 1/2 1/2))
Compiler

Compiled 13082 to 9361 computations (28.4% saved)

localize29.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.7b
(/.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)))
3.0b
(fma.f64 (pow.f64 (/.f64 (*.f64 2 l) Om) 2) (+.f64 (pow.f64 (sin.f64 kx) 2) (pow.f64 (sin.f64 ky) 2)) 1)
3.2b
(log.f64 (exp.f64 (/.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)))))
8.9b
(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))

series855.0ms (5.9%)

Counts
1 → 48
Calls

1 calls:

855.0ms
(log.f64 (exp.f64 (/.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)))))

rewrite9.0ms (0.1%)

Algorithm
rewrite-expression-head
Rules
23×log-pow_binary64
22×exp-prod_binary64
18×times-frac_binary64
15×*-un-lft-identity_binary64
15×add-sqr-sqrt_binary64
Counts
1 → 36
Calls

1 calls:

4.0ms
(log.f64 (exp.f64 (/.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)))))

simplify147.0ms (1%)

Algorithm
egg-herbie
Rules
838×fma-def_binary64
318×cancel-sign-sub-inv_binary64
252×unswap-sqr_binary64
197×fma-neg_binary64
161×associate-*r*_binary64
Counts
84 → 107
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
03285968
18395642
229405606
349815606

prune554.0ms (3.9%)

Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New3000300
Fresh022
Picked011
Done000
Total3003303
Error
0.6b
Counts
303 → 3
Alt Table
StatusErrorProgram
33.5b
(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))))))
1.5b
(sqrt.f64 (+.f64 1/2 (log.f64 (exp.f64 (/.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)))))))
25.0b
(sqrt.f64 (+.f64 1/2 1/2))
Compiler

Compiled 19362 to 14024 computations (27.6% saved)

localize2.0ms (0%)

prune4.0ms (0%)

Pruning

3 alts after pruning (1 fresh and 2 done)

PrunedKeptTotal
New000
Fresh011
Picked011
Done011
Total033
Error
0.6b
Counts
3 → 3
Alt Table
StatusErrorProgram
33.5b
(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))))))
1.5b
(sqrt.f64 (+.f64 1/2 (log.f64 (exp.f64 (/.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)))))))
25.0b
(sqrt.f64 (+.f64 1/2 1/2))
Compiler

Compiled 148 to 106 computations (28.4% saved)

localize28.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
7.9b
(/.f64 (pow.f64 (sin.f64 ky) 2) (*.f64 Om Om))
9.8b
(/.f64 (pow.f64 (sin.f64 kx) 2) (*.f64 Om Om))
26.8b
(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)))))
27.1b
(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)))))

series651.0ms (4.5%)

Counts
4 → 120
Calls

4 calls:

400.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)))))
176.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)))))
38.0ms
(/.f64 (pow.f64 (sin.f64 ky) 2) (*.f64 Om Om))
36.0ms
(/.f64 (pow.f64 (sin.f64 kx) 2) (*.f64 Om Om))

rewrite51.0ms (0.4%)

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:

16.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)))))
15.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))

simplify183.0ms (1.3%)

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

prune439.0ms (3%)

Pruning

3 alts after pruning (0 fresh and 3 done)

PrunedKeptTotal
New3400340
Fresh000
Picked011
Done022
Total3403343
Error
0.6b
Counts
343 → 3
Alt Table
StatusErrorProgram
33.5b
(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))))))
1.5b
(sqrt.f64 (+.f64 1/2 (log.f64 (exp.f64 (/.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)))))))
25.0b
(sqrt.f64 (+.f64 1/2 1/2))
Compiler

Compiled 20507 to 11890 computations (42% saved)

regimes3.5s (24.6%)

Accuracy

Total 0.7b remaining (61.8%)

Threshold costs 0.7b (61.8%)

Counts
137 → 1
Compiler

Compiled 101810 to 80930 computations (20.5% saved)

simplify2.0ms (0%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
02341
12841
22741

end116.0ms (0.8%)

Remove

(sort kx ky)

Compiler

Compiled 213 to 174 computations (18.3% saved)

Profiling

Loading profile data...