Details

Time bar (total: 12.1s)

analyze1.1s (9.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)

sample145.0ms (1.2%)

Algorithm
intervals
Symmetry

(sort a1 a2)

Results
30.0ms54×body1024valid
30.0ms57×body1024invalid
15.0ms162×body128valid
9.0ms27×body512valid
7.0ms26×body512invalid
4.0ms18×body128invalid
3.0ms13×body256valid
2.0msbody256invalid
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.4b
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)

localize9.0ms (0.1%)

Local error

Found 2 expressions with local error:

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

series137.0ms (1.1%)

Counts
2 → 60
Calls

2 calls:

116.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))

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

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

Useful iterations: 2 (0.0ms)

IterNodesCost
01703315
13653012
212892968
343592968
450762968

prune142.0ms (1.2%)

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.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 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (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.5b
(/.f64 (*.f64 (cos.f64 th) (fma.f64 a1 a1 (*.f64 a2 a2))) (sqrt.f64 2))
0.4b
(*.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)) (cos.f64 th))
1.2b
(*.f64 (cos.f64 th) (*.f64 (*.f64 (cbrt.f64 (fma.f64 a2 a2 (*.f64 a1 a1))) (cbrt.f64 (fma.f64 a2 a2 (*.f64 a1 a1)))) (/.f64 (cbrt.f64 (fma.f64 a2 a2 (*.f64 a1 a1))) (sqrt.f64 2))))
0.6b
(*.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)))))
38.1b
(cbrt.f64 (pow.f64 (*.f64 (/.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (sqrt.f64 2)) (cos.f64 th)) 3))
Compiler

Compiled 3763 to 1772 computations (52.9% saved)

localize13.0ms (0.1%)

Local error

Found 3 expressions with local error:

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

series102.0ms (0.8%)

Counts
3 → 84
Calls

3 calls:

56.0ms
(*.f64 (cos.f64 th) (/.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))))
25.0ms
(/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2)))
21.0ms
(/.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2)))

rewrite233.0ms (1.9%)

Algorithm
rewrite-expression-head
Rules
1137×sqrt-prod_binary64
1119×times-frac_binary64
624×add-sqr-sqrt_binary64
577×*-un-lft-identity_binary64
577×add-cube-cbrt_binary64
Counts
3 → 706
Calls

3 calls:

56.0ms
(*.f64 (cos.f64 th) (/.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))))
14.0ms
(/.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2)))
5.0ms
(/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2)))

simplify669.0ms (5.5%)

Algorithm
egg-herbie
Rules
811×fma-def_binary64
722×associate-/r/_binary64
428×associate-/l/_binary64
297×associate-/l*_binary64
226×associate-*l*_binary64
Counts
790 → 735
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
047428220
1107924418
2306523626
3450423572
4518823572

prune769.0ms (6.3%)

Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New7314735
Fresh527
Picked101
Done000
Total7376743
Error
0b
Counts
743 → 6
Alt Table
StatusErrorProgram
0.4b
(*.f64 (/.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))) (cos.f64 th))
0.4b
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (/.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 (sqrt.f64 2)))) (sqrt.f64 (sqrt.f64 (sqrt.f64 2)))))
1.2b
(*.f64 (cos.f64 th) (*.f64 (*.f64 (cbrt.f64 (fma.f64 a2 a2 (*.f64 a1 a1))) (cbrt.f64 (fma.f64 a2 a2 (*.f64 a1 a1)))) (/.f64 (cbrt.f64 (fma.f64 a2 a2 (*.f64 a1 a1))) (sqrt.f64 2))))
0.3b
(*.f64 (*.f64 (cos.f64 th) (/.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (cbrt.f64 (sqrt.f64 2)))) (/.f64 (/.f64 1 (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (cbrt.f64 (sqrt.f64 2)))))
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.3b
(*.f64 (cos.f64 th) (/.f64 (*.f64 (sqrt.f64 (/.f64 1 (sqrt.f64 2))) (fma.f64 a2 a2 (*.f64 a1 a1))) (sqrt.f64 (sqrt.f64 2))))
Compiler

Compiled 25145 to 14694 computations (41.6% saved)

localize12.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.3b
(/.f64 (*.f64 (sqrt.f64 (/.f64 1 (sqrt.f64 2))) (fma.f64 a2 a2 (*.f64 a1 a1))) (sqrt.f64 (sqrt.f64 2)))
0.3b
(*.f64 (sqrt.f64 (/.f64 1 (sqrt.f64 2))) (fma.f64 a2 a2 (*.f64 a1 a1)))
1.0b
(sqrt.f64 (/.f64 1 (sqrt.f64 2)))
1.0b
(/.f64 1 (sqrt.f64 2))

series45.0ms (0.4%)

Counts
4 → 48
Calls

4 calls:

24.0ms
(*.f64 (sqrt.f64 (/.f64 1 (sqrt.f64 2))) (fma.f64 a2 a2 (*.f64 a1 a1)))
21.0ms
(/.f64 (*.f64 (sqrt.f64 (/.f64 1 (sqrt.f64 2))) (fma.f64 a2 a2 (*.f64 a1 a1))) (sqrt.f64 (sqrt.f64 2)))
0.0ms
(/.f64 1 (sqrt.f64 2))
0.0ms
(sqrt.f64 (/.f64 1 (sqrt.f64 2)))

rewrite37.0ms (0.3%)

Algorithm
rewrite-expression-head
Rules
101×sqrt-prod_binary64
74×add-sqr-sqrt_binary64
71×times-frac_binary64
57×*-un-lft-identity_binary64
53×add-cube-cbrt_binary64
Counts
4 → 176
Calls

4 calls:

10.0ms
(*.f64 (sqrt.f64 (/.f64 1 (sqrt.f64 2))) (fma.f64 a2 a2 (*.f64 a1 a1)))
9.0ms
(/.f64 (*.f64 (sqrt.f64 (/.f64 1 (sqrt.f64 2))) (fma.f64 a2 a2 (*.f64 a1 a1))) (sqrt.f64 (sqrt.f64 2)))
3.0ms
(sqrt.f64 (/.f64 1 (sqrt.f64 2)))
3.0ms
(/.f64 1 (sqrt.f64 2))

simplify172.0ms (1.4%)

Algorithm
egg-herbie
Rules
774×fma-def_binary64
717×unswap-sqr_binary64
542×associate-/l*_binary64
512×times-frac_binary64
283×associate-*l*_binary64
Counts
224 → 232
Iterations

Useful iterations: 5 (0.0ms)

IterNodesCost
01554427
12703775
28933769
333513733
440823393
540453267
653183267

prune230.0ms (1.9%)

Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New2311232
Fresh145
Picked011
Done000
Total2326238
Error
0b
Counts
238 → 6
Alt Table
StatusErrorProgram
0.4b
(*.f64 (/.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))) (cos.f64 th))
0.4b
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (/.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 (sqrt.f64 2)))) (sqrt.f64 (sqrt.f64 (sqrt.f64 2)))))
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.3b
(*.f64 (cos.f64 th) (/.f64 (*.f64 (sqrt.f64 (/.f64 1 (sqrt.f64 2))) (fma.f64 a2 a2 (*.f64 a1 a1))) (sqrt.f64 (sqrt.f64 2))))
0.3b
(*.f64 (*.f64 (cos.f64 th) (/.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (cbrt.f64 (sqrt.f64 2)))) (/.f64 (/.f64 1 (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (cbrt.f64 (sqrt.f64 2)))))
0.6b
(*.f64 (cos.f64 th) (/.f64 (*.f64 (sqrt.f64 (pow.f64 2 -1/2)) (fma.f64 a2 a2 (*.f64 a1 a1))) (sqrt.f64 (sqrt.f64 2))))
Compiler

Compiled 6104 to 4041 computations (33.8% saved)

localize16.0ms (0.1%)

Local error

Found 4 expressions with local error:

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

series247.0ms (2%)

Counts
4 → 60
Calls

4 calls:

191.0ms
(/.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (cbrt.f64 (sqrt.f64 2)))
56.0ms
(*.f64 (*.f64 (cos.f64 th) (/.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (cbrt.f64 (sqrt.f64 2)))) (/.f64 (/.f64 1 (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (cbrt.f64 (sqrt.f64 2)))))
0.0ms
(/.f64 (/.f64 1 (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (cbrt.f64 (sqrt.f64 2))))
0.0ms
(/.f64 1 (sqrt.f64 (sqrt.f64 2)))

rewrite293.0ms (2.4%)

Algorithm
rewrite-expression-head
Rules
1479×sqrt-prod_binary64
1473×times-frac_binary64
776×*-un-lft-identity_binary64
776×add-sqr-sqrt_binary64
776×add-cube-cbrt_binary64
Counts
4 → 966
Calls

4 calls:

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

simplify864.0ms (7.1%)

Algorithm
egg-herbie
Rules
394×associate-*l*_binary64
353×associate-*r/_binary64
342×associate-*r*_binary64
309×*-commutative_binary64
261×associate-*l/_binary64
Counts
1026 → 942
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
042134822
1104532649
2402232369
3497632369
4496832369

prune1.1s (9.4%)

Pruning

6 alts after pruning (4 fresh and 2 done)

PrunedKeptTotal
New9420942
Fresh044
Picked011
Done011
Total9426948
Error
0b
Counts
948 → 6
Alt Table
StatusErrorProgram
0.4b
(*.f64 (/.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))) (cos.f64 th))
0.4b
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (/.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 (sqrt.f64 2)))) (sqrt.f64 (sqrt.f64 (sqrt.f64 2)))))
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.3b
(*.f64 (cos.f64 th) (/.f64 (*.f64 (sqrt.f64 (/.f64 1 (sqrt.f64 2))) (fma.f64 a2 a2 (*.f64 a1 a1))) (sqrt.f64 (sqrt.f64 2))))
0.3b
(*.f64 (*.f64 (cos.f64 th) (/.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (cbrt.f64 (sqrt.f64 2)))) (/.f64 (/.f64 1 (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (cbrt.f64 (sqrt.f64 2)))))
0.6b
(*.f64 (cos.f64 th) (/.f64 (*.f64 (sqrt.f64 (pow.f64 2 -1/2)) (fma.f64 a2 a2 (*.f64 a1 a1))) (sqrt.f64 (sqrt.f64 2))))
Compiler

Compiled 36308 to 28121 computations (22.5% saved)

regimes2.2s (17.9%)

Accuracy

Total 0.3b remaining (80.8%)

Threshold costs 0.3b (80.8%)

Counts
215 → 1
Compiler

Compiled 43734 to 32129 computations (26.5% saved)

simplify2.0ms (0%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
01630
12030
21930

end7.0ms (0.1%)

Remove

(sort a1 a2)

Compiler

Compiled 66 to 51 computations (22.7% saved)

sample3.4s (28.2%)

Algorithm
intervals
Results
816.0ms1698×body1024valid
804.0ms1620×body1024invalid
518.0ms4922×body128valid
270.0ms929×body512valid
234.0ms781×body512invalid
87.0ms449×body256valid
83.0ms373×body256invalid
74.0ms664×body128invalid
2.0msbody2048valid
Compiler

Compiled 186 to 142 computations (23.7% saved)

Profiling

Loading profile data...