Details

Time bar (total: 12.0s)

analyze1.2s (10.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.8s (39.9%)

Symmetry

(sort a1 a2)

Results
1.4s1858×body1024valid
1.2s1624×body1024invalid
917.0ms4972×body128valid
473.0ms941×body512valid
396.0ms846×body512invalid
153.0ms479×body256valid
142.0ms402×body256invalid
119.0ms663×body128invalid
7.0msbody2048valid
Compiler

Compiled 68 to 47 computations (30.9% saved)

simplify10.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.3b
Counts
3 → 2
Alt Table
StatusErrorProgram
0.5b
(+.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)

localize11.0ms (0.1%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(cos.f64 th)
0.1b
(*.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))

series80.0ms (0.7%)

Counts
3 → 64
Calls

3 calls:

58.0ms
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
21.0ms
(/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))
2.0ms
(cos.f64 th)

rewrite19.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 → 94
Calls

3 calls:

9.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))
1.0ms
(cos.f64 th)

simplify122.0ms (1%)

Algorithm
egg-herbie
Rules
486×associate-*l*_binary64
420×associate-*r*_binary64
337×unswap-sqr_binary64
336×associate-/l*_binary64
276×associate-*r/_binary64
Counts
158 → 168
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01823431
13983117
213733069
344143069
452053069

prune179.0ms (1.5%)

Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New1608168
Fresh101
Picked101
Done000
Total1628170
Error
0b
Counts
170 → 8
Alt Table
StatusErrorProgram
0.6b
(*.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))))
0.6b
(*.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.5b
(*.f64 (cos.f64 th) (/.f64 (/.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))))
0.4b
(*.f64 (*.f64 (cos.f64 th) (/.f64 (hypot.f64 a2 a1) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))))) (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2))))
1.2b
(*.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)))) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))))) (/.f64 (cbrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2))))
0.4b
(/.f64 (*.f64 (cos.f64 th) (fma.f64 a1 a1 (*.f64 a2 a2))) (sqrt.f64 2))
0.7b
(*.f64 (cos.f64 th) (*.f64 (/.f64 1 (sqrt.f64 (sqrt.f64 2))) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2)))))
0.4b
(*.f64 (cos.f64 th) (/.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (cbrt.f64 (sqrt.f64 2))))
Compiler

Compiled 4117 to 1967 computations (52.2% saved)

localize17.0ms (0.1%)

Local error

Found 4 expressions with local error:

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

series665.0ms (5.5%)

Counts
4 → 120
Calls

4 calls:

408.0ms
(*.f64 (cos.f64 th) (/.f64 (hypot.f64 a2 a1) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))))
197.0ms
(*.f64 (*.f64 (cos.f64 th) (/.f64 (hypot.f64 a2 a1) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))))) (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2))))
45.0ms
(/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2)))
13.0ms
(sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2)))

rewrite62.0ms (0.5%)

Algorithm
rewrite-expression-head
Rules
112×times-frac_binary64
99×sqrt-prod_binary64
91×add-sqr-sqrt_binary64
86×*-un-lft-identity_binary64
86×add-cube-cbrt_binary64
Counts
4 → 219
Calls

4 calls:

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

simplify219.0ms (1.8%)

Algorithm
egg-herbie
Rules
629×fma-def_binary64
486×associate-*l*_binary64
420×associate-*r*_binary64
263×associate-*r/_binary64
258×fma-neg_binary64
Counts
339 → 402
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
042412369
111719283
244939166
351089166

prune447.0ms (3.7%)

Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New4002402
Fresh347
Picked011
Done000
Total4037410
Error
0b
Counts
410 → 7
Alt Table
StatusErrorProgram
0.5b
(*.f64 (cos.f64 th) (/.f64 (/.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))))
0.4b
(*.f64 (*.f64 (cos.f64 th) (/.f64 (hypot.f64 a2 a1) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))))) (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2))))
0.4b
(/.f64 (*.f64 (cos.f64 th) (fma.f64 a1 a1 (*.f64 a2 a2))) (sqrt.f64 2))
0.4b
(*.f64 (*.f64 (cos.f64 th) (*.f64 (hypot.f64 a2 a1) (cbrt.f64 1/2))) (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2))))
0.6b
(*.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))))
0.4b
(/.f64 (/.f64 (*.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (cos.f64 th)) (cbrt.f64 (sqrt.f64 2))) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))))
0.7b
(*.f64 (cos.f64 th) (*.f64 (/.f64 1 (sqrt.f64 (sqrt.f64 2))) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2)))))
Compiler

Compiled 15588 to 9176 computations (41.1% saved)

localize16.0ms (0.1%)

Local error

Found 4 expressions with local error:

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

series778.0ms (6.5%)

Counts
3 → 96
Calls

3 calls:

692.0ms
(*.f64 (*.f64 (cos.f64 th) (*.f64 (hypot.f64 a2 a1) (cbrt.f64 1/2))) (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2))))
59.0ms
(*.f64 (cos.f64 th) (*.f64 (hypot.f64 a2 a1) (cbrt.f64 1/2)))
26.0ms
(*.f64 (hypot.f64 a2 a1) (cbrt.f64 1/2))

rewrite42.0ms (0.4%)

Algorithm
rewrite-expression-head
Rules
65×associate-*r*_binary64
54×times-frac_binary64
48×add-sqr-sqrt_binary64
45×sqrt-prod_binary64
44×*-un-lft-identity_binary64
Counts
3 → 129
Calls

3 calls:

16.0ms
(*.f64 (*.f64 (cos.f64 th) (*.f64 (hypot.f64 a2 a1) (cbrt.f64 1/2))) (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2))))
4.0ms
(*.f64 (cos.f64 th) (*.f64 (hypot.f64 a2 a1) (cbrt.f64 1/2)))
4.0ms
(*.f64 (hypot.f64 a2 a1) (cbrt.f64 1/2))

simplify155.0ms (1.3%)

Algorithm
egg-herbie
Rules
984×times-frac_binary64
613×associate-*l*_binary64
580×associate-*r*_binary64
405×fma-neg_binary64
341×*-commutative_binary64
Counts
225 → 268
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
03367535
110066351
241506351
360586351

prune393.0ms (3.3%)

Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New3211322
Fresh145
Picked011
Done101
Total3236329
Error
0b
Counts
329 → 6
Alt Table
StatusErrorProgram
0.4b
(/.f64 (*.f64 (cos.f64 th) (fma.f64 a1 a1 (*.f64 a2 a2))) (sqrt.f64 2))
0.4b
(*.f64 (*.f64 (cos.f64 th) (*.f64 (hypot.f64 a2 a1) (cbrt.f64 1/2))) (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2))))
0.6b
(*.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))))
0.4b
(/.f64 (/.f64 (*.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (cos.f64 th)) (cbrt.f64 (sqrt.f64 2))) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))))
0.7b
(*.f64 (cos.f64 th) (*.f64 (/.f64 1 (sqrt.f64 (sqrt.f64 2))) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2)))))
0.4b
(*.f64 (cos.f64 th) (/.f64 (*.f64 (cbrt.f64 1/2) (fma.f64 a1 a1 (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2))))
Compiler

Compiled 10974 to 5991 computations (45.4% saved)

localize13.0ms (0.1%)

Local error

Found 4 expressions with local error:

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

series545.0ms (4.5%)

Counts
4 → 132
Calls

4 calls:

408.0ms
(/.f64 (*.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (cos.f64 th)) (cbrt.f64 (sqrt.f64 2)))
72.0ms
(*.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (cos.f64 th))
58.0ms
(/.f64 (/.f64 (*.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (cos.f64 th)) (cbrt.f64 (sqrt.f64 2))) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))))
6.0ms
(fma.f64 a2 a2 (*.f64 a1 a1))

rewrite32.0ms (0.3%)

Algorithm
rewrite-expression-head
Rules
40×times-frac_binary64
32×add-exp-log_binary64
24×cbrt-prod_binary64
22×add-sqr-sqrt_binary64
20×*-un-lft-identity_binary64
Counts
4 → 117
Calls

4 calls:

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

simplify198.0ms (1.7%)

Algorithm
egg-herbie
Rules
780×fma-neg_binary64
731×cancel-sign-sub-inv_binary64
207×unswap-sqr_binary64
185×neg-mul-1_binary64
181×neg-sub0_binary64
Counts
249 → 235
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
02706073
16675381
227985372
342045372
449925372
553065372

prune255.0ms (2.1%)

Pruning

6 alts after pruning (4 fresh and 2 done)

PrunedKeptTotal
New2350235
Fresh044
Picked011
Done011
Total2356241
Error
0b
Counts
241 → 6
Alt Table
StatusErrorProgram
0.4b
(/.f64 (*.f64 (cos.f64 th) (fma.f64 a1 a1 (*.f64 a2 a2))) (sqrt.f64 2))
0.4b
(*.f64 (*.f64 (cos.f64 th) (*.f64 (hypot.f64 a2 a1) (cbrt.f64 1/2))) (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2))))
0.6b
(*.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))))
0.4b
(/.f64 (/.f64 (*.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (cos.f64 th)) (cbrt.f64 (sqrt.f64 2))) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))))
0.7b
(*.f64 (cos.f64 th) (*.f64 (/.f64 1 (sqrt.f64 (sqrt.f64 2))) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2)))))
0.4b
(*.f64 (cos.f64 th) (/.f64 (*.f64 (cbrt.f64 1/2) (fma.f64 a1 a1 (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2))))
Compiler

Compiled 7166 to 4460 computations (37.8% saved)

regimes1.6s (13.2%)

Accuracy

Total 0.4b remaining (83%)

Threshold costs 0.4b (83%)

Counts
168 → 1
Compiler

Compiled 32841 to 22811 computations (30.5% saved)

simplify2.0ms (0%)

Algorithm
egg-herbie
Rules
*-commutative_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01833
12133
22133

end134.0ms (1.1%)

Remove

(sort a1 a2)

Compiler

Compiled 225 to 163 computations (27.6% saved)

Profiling

Loading profile data...