Details

Time bar (total: 11.9s)

analyze1.2s (10.5%)

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)

sample5.0s (41.6%)

Symmetry

(sort a1 a2)

Results
1.4s1773×body1024valid
1.2s1620×body1024invalid
1.0s5106×body128valid
464.0ms908×body512valid
399.0ms776×body512invalid
161.0ms464×body256valid
139.0ms400×body256invalid
138.0ms696×body128invalid
6.0msbody2048valid
Compiler

Compiled 68 to 47 computations (30.9% saved)

simplify9.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
Counts
1 → 2
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01320
12718
25318
37618
410318
511718
613218
713418
813618
913618

prune4.0ms (0%)

Pruning

3 alts after pruning (3 fresh and 0 done)

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

Compiled 108 to 70 computations (35.2% saved)

localize12.0ms (0.1%)

Local error

Found 3 expressions with local error:

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

series83.0ms (0.7%)

Counts
3 → 84
Calls

3 calls:

57.0ms
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
19.0ms
(/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))
6.0ms
(fma.f64 a1 a1 (*.f64 a2 a2))

rewrite22.0ms (0.2%)

Algorithm
rewrite-expression-head
Rules
40×add-sqr-sqrt_binary64
38×times-frac_binary64
32×*-un-lft-identity_binary64
32×add-cube-cbrt_binary64
22×associate-*r*_binary64
Counts
3 → 95
Calls

3 calls:

7.0ms
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
3.0ms
(/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))
0.0ms
(fma.f64 a1 a1 (*.f64 a2 a2))

simplify113.0ms (0.9%)

Algorithm
egg-herbie
Rules
456×associate-*l*_binary64
410×associate-*r*_binary64
396×fma-neg_binary64
332×associate-/l*_binary64
299×sub-neg_binary64
Counts
179 → 174
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01743607
13683275
212963231
343703231
451093231

prune171.0ms (1.4%)

Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New1668174
Fresh101
Picked101
Done000
Total1688176
Error
0.2b
Counts
176 → 8
Alt Table
StatusErrorProgram
0.8b
(*.f64 (/.f64 (cos.f64 th) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (cbrt.f64 (sqrt.f64 2))))
28.1b
(*.f64 (cos.f64 th) (/.f64 (pow.f64 a2 2) (sqrt.f64 2)))
0.9b
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2))))
0.7b
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (sqrt.f64 2)))
0.8b
(*.f64 (*.f64 (cos.f64 th) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 (sqrt.f64 2)))) (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (sqrt.f64 (sqrt.f64 2))))
1.4b
(*.f64 (*.f64 (cos.f64 th) (/.f64 (*.f64 (cbrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (cbrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2)))) (sqrt.f64 (sqrt.f64 2)))) (/.f64 (cbrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (sqrt.f64 (sqrt.f64 2))))
0.6b
(*.f64 (cos.f64 th) (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (/.f64 (sqrt.f64 2) (hypot.f64 a2 a1))))
1.4b
(*.f64 (cos.f64 th) (/.f64 (*.f64 (cbrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (cbrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2)))) (/.f64 (sqrt.f64 2) (cbrt.f64 (fma.f64 a2 a2 (*.f64 a1 a1))))))
Compiler

Compiled 4145 to 1915 computations (53.8% saved)

localize13.0ms (0.1%)

Local error

Found 4 expressions with local error:

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

series343.0ms (2.9%)

Counts
4 → 108
Calls

4 calls:

189.0ms
(*.f64 (cos.f64 th) (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (/.f64 (sqrt.f64 2) (hypot.f64 a2 a1))))
115.0ms
(/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (/.f64 (sqrt.f64 2) (hypot.f64 a2 a1)))
23.0ms
(/.f64 (sqrt.f64 2) (hypot.f64 a2 a1))
16.0ms
(sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2)))

rewrite112.0ms (0.9%)

Algorithm
rewrite-expression-head
Rules
526×times-frac_binary64
306×add-sqr-sqrt_binary64
281×*-un-lft-identity_binary64
281×add-cube-cbrt_binary64
272×sqrt-prod_binary64
Counts
4 → 401
Calls

4 calls:

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

simplify368.0ms (3.1%)

Algorithm
egg-herbie
Rules
609×fma-def_binary64
355×associate-/r/_binary64
280×*-commutative_binary64
274×cancel-sign-sub-inv_binary64
268×associate-/l*_binary64
Counts
509 → 572
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
047616630
1117013399
2392512746
3478212746
4493112746

prune493.0ms (4.1%)

Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New5675572
Fresh527
Picked101
Done000
Total5737580
Error
0.0b
Counts
580 → 7
Alt Table
StatusErrorProgram
0.9b
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2))))
0.4b
(/.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (/.f64 (sqrt.f64 2) (hypot.f64 a2 a1)))
0.8b
(*.f64 (/.f64 (cos.f64 th) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (cbrt.f64 (sqrt.f64 2))))
0.4b
(*.f64 (*.f64 (cos.f64 th) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2))) (hypot.f64 a2 a1))
0.7b
(*.f64 (cos.f64 th) (/.f64 (/.f64 (hypot.f64 a2 a1) (sqrt.f64 (sqrt.f64 2))) (/.f64 (sqrt.f64 (sqrt.f64 2)) (hypot.f64 a2 a1))))
0.6b
(*.f64 (cos.f64 th) (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (sqrt.f64 (/.f64 2 (fma.f64 a2 a2 (*.f64 a1 a1))))))
0.9b
(*.f64 (cos.f64 th) (/.f64 (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (/.f64 1 (sqrt.f64 (hypot.f64 a2 a1)))) (/.f64 (sqrt.f64 2) (sqrt.f64 (hypot.f64 a2 a1)))))
Compiler

Compiled 18099 to 7144 computations (60.5% saved)

localize9.0ms (0.1%)

Local error

Found 4 expressions with local error:

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

series210.0ms (1.8%)

Counts
3 → 96
Calls

3 calls:

159.0ms
(/.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (/.f64 (sqrt.f64 2) (hypot.f64 a2 a1)))
38.0ms
(*.f64 (cos.f64 th) (hypot.f64 a2 a1))
13.0ms
(hypot.f64 a2 a1)

rewrite19.0ms (0.2%)

Algorithm
rewrite-expression-head
Rules
58×times-frac_binary64
33×add-sqr-sqrt_binary64
31×*-un-lft-identity_binary64
31×add-cube-cbrt_binary64
22×associate-/r*_binary64
Counts
3 → 96
Calls

3 calls:

7.0ms
(/.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (/.f64 (sqrt.f64 2) (hypot.f64 a2 a1)))
3.0ms
(*.f64 (cos.f64 th) (hypot.f64 a2 a1))
0.0ms
(hypot.f64 a2 a1)

simplify117.0ms (1%)

Algorithm
egg-herbie
Rules
791×associate-/r/_binary64
477×fma-def_binary64
298×cancel-sign-sub-inv_binary64
276×associate-/l*_binary64
213×fma-neg_binary64
Counts
192 → 241
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
03064690
18084264
229304129
351304129

prune289.0ms (2.4%)

Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New3613364
Fresh426
Picked011
Done000
Total3656371
Error
0b
Counts
371 → 6
Alt Table
StatusErrorProgram
0.9b
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2))))
0.4b
(/.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (/.f64 (sqrt.f64 2) (hypot.f64 a2 a1)))
0.7b
(*.f64 (cos.f64 th) (/.f64 (/.f64 (hypot.f64 a2 a1) (sqrt.f64 (sqrt.f64 2))) (/.f64 (sqrt.f64 (sqrt.f64 2)) (hypot.f64 a2 a1))))
0.6b
(/.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (sqrt.f64 (/.f64 2 (fma.f64 a2 a2 (*.f64 a1 a1)))))
0.7b
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (fma.f64 a1 a1 (*.f64 a2 a2)))
0.7b
(*.f64 (*.f64 (cos.f64 th) (sqrt.f64 (hypot.f64 a1 a2))) (/.f64 (hypot.f64 a1 a2) (/.f64 (sqrt.f64 2) (sqrt.f64 (hypot.f64 a1 a2)))))
Compiler

Compiled 8810 to 4375 computations (50.3% saved)

localize13.0ms (0.1%)

Local error

Found 4 expressions with local error:

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

series236.0ms (2%)

Counts
3 → 84
Calls

3 calls:

190.0ms
(/.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (sqrt.f64 (/.f64 2 (fma.f64 a2 a2 (*.f64 a1 a1)))))
27.0ms
(sqrt.f64 (/.f64 2 (fma.f64 a2 a2 (*.f64 a1 a1))))
19.0ms
(/.f64 2 (fma.f64 a2 a2 (*.f64 a1 a1)))

rewrite26.0ms (0.2%)

Algorithm
rewrite-expression-head
Rules
53×times-frac_binary64
39×sqrt-prod_binary64
37×add-sqr-sqrt_binary64
34×*-un-lft-identity_binary64
34×add-cube-cbrt_binary64
Counts
3 → 106
Calls

3 calls:

6.0ms
(/.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (sqrt.f64 (/.f64 2 (fma.f64 a2 a2 (*.f64 a1 a1)))))
2.0ms
(sqrt.f64 (/.f64 2 (fma.f64 a2 a2 (*.f64 a1 a1))))
2.0ms
(/.f64 2 (fma.f64 a2 a2 (*.f64 a1 a1)))

simplify114.0ms (1%)

Algorithm
egg-herbie
Rules
604×associate-/r*_binary64
407×fma-def_binary64
363×associate-/r/_binary64
339×associate-/l/_binary64
270×cancel-sign-sub-inv_binary64
Counts
190 → 244
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
03035202
17034747
223124657
352014657

prune258.0ms (2.2%)

Pruning

6 alts after pruning (4 fresh and 2 done)

PrunedKeptTotal
New3200320
Fresh044
Picked011
Done011
Total3206326
Error
0b
Counts
326 → 6
Alt Table
StatusErrorProgram
0.9b
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2))))
0.4b
(/.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (/.f64 (sqrt.f64 2) (hypot.f64 a2 a1)))
0.7b
(*.f64 (cos.f64 th) (/.f64 (/.f64 (hypot.f64 a2 a1) (sqrt.f64 (sqrt.f64 2))) (/.f64 (sqrt.f64 (sqrt.f64 2)) (hypot.f64 a2 a1))))
0.6b
(/.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (sqrt.f64 (/.f64 2 (fma.f64 a2 a2 (*.f64 a1 a1)))))
0.7b
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (fma.f64 a1 a1 (*.f64 a2 a2)))
0.7b
(*.f64 (*.f64 (cos.f64 th) (sqrt.f64 (hypot.f64 a1 a2))) (/.f64 (hypot.f64 a1 a2) (/.f64 (sqrt.f64 2) (sqrt.f64 (hypot.f64 a1 a2)))))
Compiler

Compiled 8685 to 3787 computations (56.4% saved)

regimes2.6s (21.5%)

Accuracy

Total 0.4b remaining (95.1%)

Threshold costs 0.4b (95.1%)

Counts
298 → 1
Compiler

Compiled 51788 to 34373 computations (33.6% saved)

simplify2.0ms (0%)

Algorithm
egg-herbie
Rules
*-commutative_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01120
11220
21220

end104.0ms (0.9%)

Remove

(sort a1 a2)

Compiler

Compiled 177 to 114 computations (35.6% saved)

Profiling

Loading profile data...