Details

Time bar (total: 9.0s)

analyze1.1s (12.1%)

Algorithm
search
Search
TrueOtherFalseIter
0%99.9%0.1%0
0%99.9%0.1%1
0%99.9%0.1%2
0%99.9%0.1%3
0%99.9%0.1%4
0%99.9%0.1%5
25%74.9%0.1%6
25%74.9%0.1%7
25%74.9%0.1%8
25%74.9%0.1%9
25%64%11.1%10
31.2%54.6%14.2%11
39%44.1%16.9%12
39%41.5%19.5%13
42.9%37%20.1%14
Compiler

Compiled 23 to 16 computations (30.4% saved)

sample4.4s (49%)

Symmetry

(sort a1 a2)

Results
1.2s1811×body1024valid
1.1s1562×body1024invalid
855.0ms5100×body128valid
408.0ms893×body512valid
369.0ms784×body512invalid
148.0ms670×body128invalid
144.0ms372×body256invalid
139.0ms451×body256valid
1.0msbody2048valid
Compiler

Compiled 68 to 47 computations (30.9% saved)

simplify11.0ms (0.1%)

Algorithm
egg-herbie
Rules
32×fma-def_binary64
23×*-commutative_binary64
20×associate-/l*_binary64
11×associate-/r/_binary64
associate-*r/_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01320
12718
25818
38818
411518
513518
615218
717018
817218
Stop Event
saturated
Counts
1 → 2

prune4.0ms (0%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New022
Fresh011
Picked000
Done000
Total033
Error
0.3b
Counts
3 → 2
Alt Table
StatusErrorProgram
0.4b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
0.4b
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
Compiler

Compiled 108 to 70 computations (35.2% saved)

localize10.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
0.2b
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2))
0.3b
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1))
0.7b
(/.f64 (cos.f64 th) (sqrt.f64 2))

series151.0ms (1.7%)

Counts
4 → 88
Calls

4 calls:

98.0ms
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
24.0ms
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2))
23.0ms
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1))
6.0ms
(/.f64 (cos.f64 th) (sqrt.f64 2))

rewrite70.0ms (0.8%)

Algorithm
batch-egg-rewrite
Rules
512×fma-def_binary64
246×expm1-udef_binary64
246×log1p-udef_binary64
243×fma-neg_binary64
164×egg-rr
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01356
128354
2389854
Stop Event
node limit
Counts
4 → 164
Calls

4 calls:

67.0ms
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
67.0ms
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2))
67.0ms
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1))
67.0ms
(/.f64 (cos.f64 th) (sqrt.f64 2))

simplify59.0ms (0.7%)

Algorithm
egg-herbie
Rules
547×fma-neg_binary64
398×sub-neg_binary64
338×unswap-sqr_binary64
221×associate-*r*_binary64
193×associate-*l*_binary64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
0902134
12972126
28591810
334481806
Stop Event
node limit
Counts
252 → 201

prune270.0ms (3%)

Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New2347241
Fresh101
Picked101
Done000
Total2367243
Error
0b
Counts
243 → 7
Alt Table
StatusErrorProgram
0.5b
(*.f64 (cos.f64 th) (*.f64 (pow.f64 2 -1/2) (fma.f64 a1 a1 (*.f64 a2 a2))))
0.6b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (*.f64 (/.f64 (pow.f64 (cbrt.f64 (cos.f64 th)) 2) 1) (/.f64 (cbrt.f64 (cos.f64 th)) (sqrt.f64 2))) (*.f64 a2 a2)))
0.5b
(fma.f64 (*.f64 (*.f64 (cos.f64 th) a2) a2) (pow.f64 2 -1/2) (/.f64 (cos.f64 th) (/.f64 (sqrt.f64 2) (*.f64 a1 a1))))
0.4b
(+.f64 (*.f64 (*.f64 (cos.f64 th) (pow.f64 2 -1/2)) (*.f64 a1 a1)) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
0.4b
(/.f64 (fma.f64 (*.f64 (cos.f64 th) (*.f64 a1 a1)) (sqrt.f64 2) (*.f64 (sqrt.f64 2) (*.f64 (*.f64 (cos.f64 th) a2) a2))) 2)
0.4b
(/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (/.f64 (sqrt.f64 2) (cos.f64 th)))
0.4b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (/.f64 (/.f64 (*.f64 (*.f64 (cos.f64 th) a2) a2) (pow.f64 2 1/4)) (pow.f64 2 1/4)))
Compiler

Compiled 6413 to 3675 computations (42.7% saved)

localize13.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.2b
(*.f64 (cos.f64 th) (pow.f64 2 -1/2))
0.2b
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2))
0.3b
(*.f64 (*.f64 (cos.f64 th) (pow.f64 2 -1/2)) (*.f64 a1 a1))
0.7b
(/.f64 (cos.f64 th) (sqrt.f64 2))

series21.0ms (0.2%)

Counts
2 → 36
Calls

2 calls:

17.0ms
(*.f64 (*.f64 (cos.f64 th) (pow.f64 2 -1/2)) (*.f64 a1 a1))
4.0ms
(*.f64 (cos.f64 th) (pow.f64 2 -1/2))

rewrite40.0ms (0.4%)

Algorithm
batch-egg-rewrite
Rules
838×log1p-expm1-u_binary64
838×expm1-log1p-u_binary64
100×add-sqr-sqrt_binary64
94×add-cube-cbrt_binary64
94×add-cbrt-cube_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01024
120722
2239122
Stop Event
node limit
Counts
2 → 30
Calls

2 calls:

39.0ms
(*.f64 (cos.f64 th) (pow.f64 2 -1/2))
39.0ms
(*.f64 (*.f64 (cos.f64 th) (pow.f64 2 -1/2)) (*.f64 a1 a1))

simplify48.0ms (0.5%)

Algorithm
egg-herbie
Rules
704×fma-neg_binary64
335×distribute-rgt-neg-in_binary64
320×distribute-lft-neg-in_binary64
278×associate-*r*_binary64
275×associate-*l*_binary64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
044588
1125580
2425542
32138518
44737518
Stop Event
node limit
Counts
66 → 49

prune123.0ms (1.4%)

Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New1220122
Fresh066
Picked011
Done000
Total1227129
Error
0b
Counts
129 → 7
Alt Table
StatusErrorProgram
0.5b
(*.f64 (cos.f64 th) (*.f64 (pow.f64 2 -1/2) (fma.f64 a1 a1 (*.f64 a2 a2))))
0.6b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (*.f64 (/.f64 (pow.f64 (cbrt.f64 (cos.f64 th)) 2) 1) (/.f64 (cbrt.f64 (cos.f64 th)) (sqrt.f64 2))) (*.f64 a2 a2)))
0.5b
(fma.f64 (*.f64 (*.f64 (cos.f64 th) a2) a2) (pow.f64 2 -1/2) (/.f64 (cos.f64 th) (/.f64 (sqrt.f64 2) (*.f64 a1 a1))))
0.4b
(+.f64 (*.f64 (*.f64 (cos.f64 th) (pow.f64 2 -1/2)) (*.f64 a1 a1)) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
0.4b
(/.f64 (fma.f64 (*.f64 (cos.f64 th) (*.f64 a1 a1)) (sqrt.f64 2) (*.f64 (sqrt.f64 2) (*.f64 (*.f64 (cos.f64 th) a2) a2))) 2)
0.4b
(/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (/.f64 (sqrt.f64 2) (cos.f64 th)))
0.4b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (/.f64 (/.f64 (*.f64 (*.f64 (cos.f64 th) a2) a2) (pow.f64 2 1/4)) (pow.f64 2 1/4)))
Compiler

Compiled 3380 to 2036 computations (39.8% saved)

localize31.0ms (0.3%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.1b
(*.f64 (cos.f64 th) (*.f64 a1 a1))
0.1b
(*.f64 (cos.f64 th) a2)
0.2b
(fma.f64 (*.f64 (cos.f64 th) (*.f64 a1 a1)) (sqrt.f64 2) (*.f64 (sqrt.f64 2) (*.f64 (*.f64 (cos.f64 th) a2) a2)))
0.3b
(*.f64 (sqrt.f64 2) (*.f64 (*.f64 (cos.f64 th) a2) a2))

series85.0ms (0.9%)

Counts
4 → 88
Calls

4 calls:

55.0ms
(fma.f64 (*.f64 (cos.f64 th) (*.f64 a1 a1)) (sqrt.f64 2) (*.f64 (sqrt.f64 2) (*.f64 (*.f64 (cos.f64 th) a2) a2)))
15.0ms
(*.f64 (sqrt.f64 2) (*.f64 (*.f64 (cos.f64 th) a2) a2))
9.0ms
(*.f64 (cos.f64 th) (*.f64 a1 a1))
6.0ms
(*.f64 (cos.f64 th) a2)

rewrite55.0ms (0.6%)

Algorithm
batch-egg-rewrite
Rules
369×prod-diff_binary64
227×expm1-udef_binary64
227×log1p-udef_binary64
210×log-pow_binary64
142×fma-def_binary64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01357
126254
2314852
Stop Event
node limit
Counts
4 → 72
Calls

4 calls:

53.0ms
(*.f64 (cos.f64 th) (*.f64 a1 a1))
53.0ms
(*.f64 (cos.f64 th) a2)
53.0ms
(fma.f64 (*.f64 (cos.f64 th) (*.f64 a1 a1)) (sqrt.f64 2) (*.f64 (sqrt.f64 2) (*.f64 (*.f64 (cos.f64 th) a2) a2)))
53.0ms
(*.f64 (sqrt.f64 2) (*.f64 (*.f64 (cos.f64 th) a2) a2))

simplify40.0ms (0.4%)

Algorithm
egg-herbie
Rules
720×fma-def_binary64
597×associate-*l*_binary64
564×associate-*r*_binary64
488×cancel-sign-sub-inv_binary64
201×associate--l+_binary64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
0921758
13101624
211131459
Stop Event
node limit
Counts
160 → 111

prune105.0ms (1.2%)

Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New1101111
Fresh145
Picked101
Done011
Total1126118
Error
0b
Counts
118 → 6
Alt Table
StatusErrorProgram
0.4b
(/.f64 (*.f64 (sqrt.f64 2) (fma.f64 (cos.f64 th) (*.f64 a1 a1) (*.f64 (cos.f64 th) (*.f64 a2 a2)))) 2)
0.5b
(fma.f64 (*.f64 (*.f64 (cos.f64 th) a2) a2) (pow.f64 2 -1/2) (/.f64 (cos.f64 th) (/.f64 (sqrt.f64 2) (*.f64 a1 a1))))
0.6b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (*.f64 (/.f64 (pow.f64 (cbrt.f64 (cos.f64 th)) 2) 1) (/.f64 (cbrt.f64 (cos.f64 th)) (sqrt.f64 2))) (*.f64 a2 a2)))
0.4b
(+.f64 (*.f64 (*.f64 (cos.f64 th) (pow.f64 2 -1/2)) (*.f64 a1 a1)) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
0.4b
(/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (/.f64 (sqrt.f64 2) (cos.f64 th)))
0.4b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (/.f64 (/.f64 (*.f64 (*.f64 (cos.f64 th) a2) a2) (pow.f64 2 1/4)) (pow.f64 2 1/4)))
Compiler

Compiled 3190 to 1788 computations (43.9% saved)

localize11.0ms (0.1%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(fma.f64 a1 a1 (*.f64 a2 a2))
0.3b
(/.f64 (sqrt.f64 2) (cos.f64 th))
0.4b
(/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (/.f64 (sqrt.f64 2) (cos.f64 th)))

series65.0ms (0.7%)

Counts
3 → 64
Calls

3 calls:

52.0ms
(/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (/.f64 (sqrt.f64 2) (cos.f64 th)))
8.0ms
(/.f64 (sqrt.f64 2) (cos.f64 th))
5.0ms
(fma.f64 a1 a1 (*.f64 a2 a2))

rewrite52.0ms (0.6%)

Algorithm
batch-egg-rewrite
Rules
569×log-prod_binary64
201×expm1-udef_binary64
201×log1p-udef_binary64
185×log-pow_binary64
156×prod-diff_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01134
123032
2298132
Stop Event
node limit
Counts
3 → 111
Calls

3 calls:

50.0ms
(fma.f64 a1 a1 (*.f64 a2 a2))
50.0ms
(/.f64 (sqrt.f64 2) (cos.f64 th))
50.0ms
(/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (/.f64 (sqrt.f64 2) (cos.f64 th)))

simplify41.0ms (0.5%)

Algorithm
egg-herbie
Rules
338×unswap-sqr_binary64
331×fma-neg_binary64
276×sub-neg_binary64
245×associate-*r*_binary64
222×associate-*l*_binary64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
0801449
12361409
27131051
331521047
Stop Event
node limit
Counts
175 → 139

prune133.0ms (1.5%)

Pruning

6 alts after pruning (4 fresh and 2 done)

PrunedKeptTotal
New1381139
Fresh134
Picked011
Done011
Total1396145
Error
0b
Counts
145 → 6
Alt Table
StatusErrorProgram
0.4b
(/.f64 (*.f64 (sqrt.f64 2) (fma.f64 (cos.f64 th) (*.f64 a1 a1) (*.f64 (cos.f64 th) (*.f64 a2 a2)))) 2)
0.5b
(fma.f64 (*.f64 (*.f64 (cos.f64 th) a2) a2) (pow.f64 2 -1/2) (/.f64 (cos.f64 th) (/.f64 (sqrt.f64 2) (*.f64 a1 a1))))
0.5b
(*.f64 (/.f64 (hypot.f64 a1 a2) (sqrt.f64 2)) (/.f64 (hypot.f64 a1 a2) (/.f64 1 (cos.f64 th))))
0.4b
(/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (/.f64 (sqrt.f64 2) (cos.f64 th)))
0.4b
(+.f64 (*.f64 (*.f64 (cos.f64 th) (pow.f64 2 -1/2)) (*.f64 a1 a1)) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
0.4b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (/.f64 (/.f64 (*.f64 (*.f64 (cos.f64 th) a2) a2) (pow.f64 2 1/4)) (pow.f64 2 1/4)))
Compiler

Compiled 2688 to 1615 computations (39.9% saved)

regimes1.8s (20.1%)

Accuracy

Total 0.5b remaining (96.2%)

Threshold costs 0.5b (96.2%)

Counts
203 → 1
Compiler

Compiled 36007 to 26348 computations (26.8% saved)

simplify2.0ms (0%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
01430
11730
Stop Event
saturated

end255.0ms (2.8%)

Compiler

Compiled 213 to 150 computations (29.6% saved)

Profiling

Loading profile data...