Details

Time bar (total: 11.2s)

analyze1.2s (10.3%)

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)

sample149.0ms (1.3%)

Algorithm
intervals
Symmetry

(sort a1 a2)

Results
31.0ms58×body1024valid
28.0ms45×body1024invalid
16.0ms154×body128valid
10.0ms32×body512valid
10.0ms27×body512invalid
5.0ms16×body256invalid
4.0ms19×body128invalid
3.0ms12×body256valid
Compiler

Compiled 48 to 34 computations (29.2% 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.6b
Counts
3 → 2
Alt Table
StatusErrorProgram
0.7b
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
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)))
Compiler

Compiled 108 to 70 computations (35.2% saved)

localize16.0ms (0.1%)

Local error

Found 2 expressions with local error:

NewErrorProgram
0.2b
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
0.6b
(/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))

series83.0ms (0.7%)

Counts
2 → 60
Calls

2 calls:

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

rewrite19.0ms (0.2%)

Algorithm
rewrite-expression-head
Rules
39×add-sqr-sqrt_binary64
38×times-frac_binary64
31×*-un-lft-identity_binary64
31×add-cube-cbrt_binary64
22×associate-*r*_binary64
Counts
2 → 85
Calls

2 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))

simplify112.0ms (1%)

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
145 → 151
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01703315
13653012
212892968
343592968
450762968

prune149.0ms (1.3%)

Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New1447151
Fresh011
Picked101
Done000
Total1458153
Error
0b
Counts
153 → 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))))
15.9b
(*.f64 (sqrt.f64 (cos.f64 th)) (*.f64 (sqrt.f64 (cos.f64 th)) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))))
0.6b
(*.f64 (cos.f64 th) (*.f64 (/.f64 (hypot.f64 a2 a1) (sqrt.f64 (sqrt.f64 2))) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 (sqrt.f64 2)))))
0.4b
(*.f64 (cos.f64 th) (*.f64 (/.f64 (hypot.f64 a2 a1) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (/.f64 (hypot.f64 a2 a1) (cbrt.f64 (sqrt.f64 2)))))
0.7b
(*.f64 (cos.f64 th) (/.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))))
1.5b
(*.f64 (*.f64 (cbrt.f64 (*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))) (cbrt.f64 (*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))))) (cbrt.f64 (*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))))
0.8b
(*.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 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
Compiler

Compiled 3809 to 1808 computations (52.5% saved)

localize12.0ms (0.1%)

Local error

Found 4 expressions with local error:

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

series317.0ms (2.8%)

Counts
4 → 108
Calls

4 calls:

112.0ms
(*.f64 (cos.f64 th) (*.f64 (/.f64 (hypot.f64 a2 a1) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (/.f64 (hypot.f64 a2 a1) (cbrt.f64 (sqrt.f64 2)))))
94.0ms
(/.f64 (hypot.f64 a2 a1) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))))
67.0ms
(*.f64 (/.f64 (hypot.f64 a2 a1) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (/.f64 (hypot.f64 a2 a1) (cbrt.f64 (sqrt.f64 2))))
43.0ms
(/.f64 (hypot.f64 a2 a1) (cbrt.f64 (sqrt.f64 2)))

rewrite63.0ms (0.6%)

Algorithm
rewrite-expression-head
Rules
72×add-sqr-sqrt_binary64
70×times-frac_binary64
61×add-exp-log_binary64
50×*-un-lft-identity_binary64
50×add-cube-cbrt_binary64
Counts
4 → 181
Calls

4 calls:

17.0ms
(*.f64 (cos.f64 th) (*.f64 (/.f64 (hypot.f64 a2 a1) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (/.f64 (hypot.f64 a2 a1) (cbrt.f64 (sqrt.f64 2)))))
15.0ms
(*.f64 (/.f64 (hypot.f64 a2 a1) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (/.f64 (hypot.f64 a2 a1) (cbrt.f64 (sqrt.f64 2))))
6.0ms
(/.f64 (hypot.f64 a2 a1) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))))
3.0ms
(/.f64 (hypot.f64 a2 a1) (cbrt.f64 (sqrt.f64 2)))

simplify264.0ms (2.4%)

Algorithm
egg-herbie
Rules
517×cancel-sign-sub-inv_binary64
363×fma-neg_binary64
266×associate-*r*_binary64
250×associate-*l*_binary64
250×associate-*r/_binary64
Counts
289 → 309
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
03479877
19387509
236177422
350797422

prune382.0ms (3.4%)

Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New3081309
Fresh167
Picked011
Done000
Total3098317
Error
0b
Counts
317 → 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))))
15.9b
(*.f64 (sqrt.f64 (cos.f64 th)) (*.f64 (sqrt.f64 (cos.f64 th)) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))))
0.6b
(*.f64 (cos.f64 th) (*.f64 (/.f64 (hypot.f64 a2 a1) (sqrt.f64 (sqrt.f64 2))) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 (sqrt.f64 2)))))
0.4b
(*.f64 (cos.f64 th) (*.f64 (/.f64 (hypot.f64 a2 a1) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (/.f64 (hypot.f64 a2 a1) (cbrt.f64 (sqrt.f64 2)))))
0.7b
(*.f64 (cos.f64 th) (/.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))))
0.4b
(*.f64 (cos.f64 th) (pow.f64 (/.f64 (hypot.f64 a2 a1) (/.f64 (sqrt.f64 2) (hypot.f64 a2 a1))) 1))
0.8b
(*.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 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
Compiler

Compiled 10532 to 6913 computations (34.4% saved)

localize10.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(hypot.f64 a2 a1)
0.2b
(*.f64 (cos.f64 th) (pow.f64 (/.f64 (hypot.f64 a2 a1) (/.f64 (sqrt.f64 2) (hypot.f64 a2 a1))) 1))
0.2b
(/.f64 (hypot.f64 a2 a1) (/.f64 (sqrt.f64 2) (hypot.f64 a2 a1)))
0.5b
(/.f64 (sqrt.f64 2) (hypot.f64 a2 a1))

series271.0ms (2.4%)

Counts
4 → 108
Calls

4 calls:

118.0ms
(*.f64 (cos.f64 th) (pow.f64 (/.f64 (hypot.f64 a2 a1) (/.f64 (sqrt.f64 2) (hypot.f64 a2 a1))) 1))
113.0ms
(/.f64 (hypot.f64 a2 a1) (/.f64 (sqrt.f64 2) (hypot.f64 a2 a1)))
26.0ms
(/.f64 (sqrt.f64 2) (hypot.f64 a2 a1))
14.0ms
(hypot.f64 a2 a1)

rewrite71.0ms (0.6%)

Algorithm
rewrite-expression-head
Rules
281×times-frac_binary64
174×add-sqr-sqrt_binary64
158×*-un-lft-identity_binary64
158×add-cube-cbrt_binary64
76×sqrt-prod_binary64
Counts
4 → 262
Calls

4 calls:

25.0ms
(*.f64 (cos.f64 th) (pow.f64 (/.f64 (hypot.f64 a2 a1) (/.f64 (sqrt.f64 2) (hypot.f64 a2 a1))) 1))
6.0ms
(/.f64 (hypot.f64 a2 a1) (/.f64 (sqrt.f64 2) (hypot.f64 a2 a1)))
3.0ms
(/.f64 (sqrt.f64 2) (hypot.f64 a2 a1))
0.0ms
(hypot.f64 a2 a1)

simplify278.0ms (2.5%)

Algorithm
egg-herbie
Rules
433×fma-def_binary64
321×associate-*r*_binary64
298×associate-*l*_binary64
255×associate-/l*_binary64
238×associate-/r/_binary64
Counts
370 → 444
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
04799554
111108809
242918616
349738616
449618616

prune473.0ms (4.2%)

Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New4842486
Fresh246
Picked101
Done011
Total4877494
Error
0b
Counts
494 → 7
Alt Table
StatusErrorProgram
0.5b
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (pow.f64 (/.f64 1 (/.f64 (sqrt.f64 2) (hypot.f64 a2 a1))) 1))
15.9b
(*.f64 (sqrt.f64 (cos.f64 th)) (*.f64 (sqrt.f64 (cos.f64 th)) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))))
0.6b
(*.f64 (cos.f64 th) (*.f64 (/.f64 (hypot.f64 a2 a1) (sqrt.f64 (sqrt.f64 2))) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 (sqrt.f64 2)))))
0.4b
(*.f64 (cos.f64 th) (*.f64 (/.f64 (hypot.f64 a2 a1) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (/.f64 (hypot.f64 a2 a1) (cbrt.f64 (sqrt.f64 2)))))
0.9b
(*.f64 (cos.f64 th) (pow.f64 (/.f64 (hypot.f64 a2 a1) (sqrt.f64 (/.f64 2 (fma.f64 a1 a1 (*.f64 a2 a2))))) 1))
0.8b
(*.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 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
Compiler

Compiled 13682 to 7260 computations (46.9% saved)

localize12.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 1 (/.f64 (sqrt.f64 2) (hypot.f64 a2 a1)))
0.3b
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (pow.f64 (/.f64 1 (/.f64 (sqrt.f64 2) (hypot.f64 a2 a1))) 1))
0.5b
(/.f64 (sqrt.f64 2) (hypot.f64 a2 a1))

series184.0ms (1.6%)

Counts
3 → 96
Calls

3 calls:

123.0ms
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (pow.f64 (/.f64 1 (/.f64 (sqrt.f64 2) (hypot.f64 a2 a1))) 1))
38.0ms
(*.f64 (cos.f64 th) (hypot.f64 a2 a1))
22.0ms
(/.f64 1 (/.f64 (sqrt.f64 2) (hypot.f64 a2 a1)))

rewrite68.0ms (0.6%)

Algorithm
rewrite-expression-head
Rules
258×times-frac_binary64
145×add-sqr-sqrt_binary64
143×*-un-lft-identity_binary64
143×add-cube-cbrt_binary64
78×associate-*r*_binary64
Counts
3 → 242
Calls

3 calls:

24.0ms
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (pow.f64 (/.f64 1 (/.f64 (sqrt.f64 2) (hypot.f64 a2 a1))) 1))
6.0ms
(/.f64 1 (/.f64 (sqrt.f64 2) (hypot.f64 a2 a1)))
3.0ms
(*.f64 (cos.f64 th) (hypot.f64 a2 a1))

simplify238.0ms (2.1%)

Algorithm
egg-herbie
Rules
514×fma-def_binary64
382×associate-*l*_binary64
359×associate-*r*_binary64
299×cancel-sign-sub-inv_binary64
230×fma-neg_binary64
Counts
338 → 417
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
03678507
19097560
233487422
348537422
449757422

prune511.0ms (4.6%)

Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New4920492
Fresh055
Picked011
Done011
Total4927499
Error
0b
Counts
499 → 7
Alt Table
StatusErrorProgram
0.5b
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (pow.f64 (/.f64 1 (/.f64 (sqrt.f64 2) (hypot.f64 a2 a1))) 1))
15.9b
(*.f64 (sqrt.f64 (cos.f64 th)) (*.f64 (sqrt.f64 (cos.f64 th)) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))))
0.6b
(*.f64 (cos.f64 th) (*.f64 (/.f64 (hypot.f64 a2 a1) (sqrt.f64 (sqrt.f64 2))) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 (sqrt.f64 2)))))
0.4b
(*.f64 (cos.f64 th) (*.f64 (/.f64 (hypot.f64 a2 a1) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (/.f64 (hypot.f64 a2 a1) (cbrt.f64 (sqrt.f64 2)))))
0.9b
(*.f64 (cos.f64 th) (pow.f64 (/.f64 (hypot.f64 a2 a1) (sqrt.f64 (/.f64 2 (fma.f64 a1 a1 (*.f64 a2 a2))))) 1))
0.8b
(*.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 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
Compiler

Compiled 14331 to 8148 computations (43.1% saved)

regimes2.7s (23.8%)

Accuracy

Total 0.4b remaining (95.2%)

Threshold costs 0.4b (95.2%)

Counts
219 → 1
Compiler

Compiled 38776 to 26913 computations (30.6% saved)

simplify3.0ms (0%)

Algorithm
egg-herbie
Rules
*-commutative_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01436
11636
21636

end9.0ms (0.1%)

Remove

(sort a1 a2)

Compiler

Compiled 75 to 57 computations (24% saved)

sample3.7s (32.8%)

Algorithm
intervals
Results
928.0ms1787×body1024valid
800.0ms1533×body1024invalid
538.0ms4831×body128valid
313.0ms923×body512valid
257.0ms754×body512invalid
103.0ms454×body256valid
88.0ms396×body256invalid
75.0ms647×body128invalid
4.0msbody2048valid
Compiler

Compiled 200 to 142 computations (29% saved)

Profiling

Loading profile data...