Details

Time bar (total: 14.5s)

analyze2.2s (15.2%)

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)

sample214.0ms (1.5%)

Algorithm
intervals
Results
50.0ms47×body1024invalid
46.0ms50×body1024valid
28.0ms171×body128valid
22.0ms31×body512invalid
14.0ms26×body512valid
5.0ms16×body256invalid
4.0ms25×body128invalid
3.0msbody256valid
Compiler

Compiled 48 to 34 computations (29.2% saved)

simplify20.0ms (0.1%)

Algorithm
egg-herbie
Rules
23×*-commutative_binary64
20×associate-/l*_binary64
11×associate-/r/_binary64
associate-*r/_binary64
distribute-rgt-out_binary64
Counts
1 → 1
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01320
12620
24620
36620
48520
59720
610820
710620
810620

prune7.0ms (0.1%)

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022
Error
0.3b
Counts
2 → 2
Alt Table
StatusErrorProgram
0.4b
(*.f64 (cos.f64 th) (/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (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)))
Compiler

Compiled 92 to 63 computations (31.5% saved)

localize19.0ms (0.1%)

Local error

Found 3 expressions with local error:

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

rewrite247.0ms (1.7%)

Algorithm
rewrite-expression-head
Error
0b
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:

68.0ms
(*.f64 (cos.f64 th) (/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 2)))
9.0ms
(/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 2))
4.0ms
(+.f64 (*.f64 a1 a1) (*.f64 a2 a2))
Compiler

Compiled 2099 to 762 computations (63.7% saved)

series271.0ms (1.9%)

Error
0.3b
Counts
3 → 42
Calls

3 calls:

132.0ms
(*.f64 (cos.f64 th) (/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 2)))
74.0ms
(/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 2))
34.0ms
(+.f64 (*.f64 a1 a1) (*.f64 a2 a2))
Compiler

Compiled 1499 to 1222 computations (18.5% saved)

simplify191.0ms (1.3%)

Algorithm
egg-herbie
Rules
383×sub-neg_binary64
346×associate-/l*_binary64
302×associate-*r/_binary64
298×associate-*l/_binary64
157×distribute-rgt-in_binary64
Counts
136 → 126
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01883537
14543289
215403143
344043143
447923143
549603143

prune89.0ms (0.6%)

Pruning

9 alts after pruning (9 fresh and 0 done)

PrunedKeptTotal
New1179126
Fresh101
Picked101
Done000
Total1199128
Error
0b
Counts
128 → 9
Alt Table
StatusErrorProgram
0.4b
(*.f64 (*.f64 (cos.f64 th) (/.f64 (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1))) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))))) (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2))))
0.4b
(/.f64 (*.f64 (cos.f64 th) (+.f64 (*.f64 a2 a2) (*.f64 a1 a1))) (sqrt.f64 2))
0.4b
(*.f64 (cos.f64 th) (*.f64 (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1))) (/.f64 (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1))) (sqrt.f64 2))))
0.6b
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2))))
0.5b
(*.f64 (cos.f64 th) (/.f64 (/.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))))
0.4b
(*.f64 (cos.f64 th) (/.f64 (/.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (cbrt.f64 (sqrt.f64 2))))
0.5b
(*.f64 (*.f64 (cos.f64 th) (/.f64 (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1))) (sqrt.f64 (sqrt.f64 2)))) (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (sqrt.f64 (sqrt.f64 2))))
1.3b
(*.f64 (*.f64 (cos.f64 th) (/.f64 (*.f64 (cbrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1))) (cbrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)))) (fabs.f64 (cbrt.f64 2)))) (/.f64 (cbrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (sqrt.f64 (cbrt.f64 2))))
0.4b
(*.f64 (cos.f64 th) (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (/.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1))))))
Compiler

Compiled 2133 to 967 computations (54.7% saved)

localize19.0ms (0.1%)

Local error

Found 4 expressions with local error:

0.2b
(/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2)))
0.3b
(*.f64 (*.f64 (cos.f64 th) (/.f64 (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1))) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))))) (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2))))
7.0b
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))
7.0b
(sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)))

rewrite297.0ms (2%)

Algorithm
rewrite-expression-head
Error
0b
Rules
108×times-frac_binary64
102×sqrt-prod_binary64
86×add-sqr-sqrt_binary64
84×*-un-lft-identity_binary64
84×add-cube-cbrt_binary64
Counts
4 → 201
Calls

4 calls:

25.0ms
(*.f64 (*.f64 (cos.f64 th) (/.f64 (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1))) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))))) (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2))))
7.0ms
(/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2)))
5.0ms
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))
3.0ms
(sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)))
Compiler

Compiled 7992 to 3469 computations (56.6% saved)

series564.0ms (3.9%)

Error
0b
Counts
4 → 75
Calls

4 calls:

163.0ms
(/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2)))
152.0ms
(*.f64 (*.f64 (cos.f64 th) (/.f64 (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1))) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))))) (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2))))
83.0ms
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))
72.0ms
(sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)))
Compiler

Compiled 5738 to 4414 computations (23.1% saved)

simplify372.0ms (2.6%)

Algorithm
egg-herbie
Rules
579×associate-*l*_binary64
482×associate-*r*_binary64
400×associate-*l/_binary64
347×associate-*r/_binary64
247×associate-/l*_binary64
Counts
276 → 217
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
042312942
1121210938
2513510938

prune273.0ms (1.9%)

Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New2170217
Fresh088
Picked011
Done000
Total2179226
Error
0b
Counts
226 → 9
Alt Table
StatusErrorProgram
0.4b
(*.f64 (*.f64 (cos.f64 th) (/.f64 (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1))) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))))) (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2))))
0.4b
(/.f64 (*.f64 (cos.f64 th) (+.f64 (*.f64 a2 a2) (*.f64 a1 a1))) (sqrt.f64 2))
0.4b
(*.f64 (cos.f64 th) (*.f64 (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1))) (/.f64 (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1))) (sqrt.f64 2))))
0.6b
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2))))
0.5b
(*.f64 (cos.f64 th) (/.f64 (/.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))))
0.4b
(*.f64 (cos.f64 th) (/.f64 (/.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (cbrt.f64 (sqrt.f64 2))))
0.5b
(*.f64 (*.f64 (cos.f64 th) (/.f64 (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1))) (sqrt.f64 (sqrt.f64 2)))) (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (sqrt.f64 (sqrt.f64 2))))
1.3b
(*.f64 (*.f64 (cos.f64 th) (/.f64 (*.f64 (cbrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1))) (cbrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)))) (fabs.f64 (cbrt.f64 2)))) (/.f64 (cbrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (sqrt.f64 (cbrt.f64 2))))
0.4b
(*.f64 (cos.f64 th) (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (/.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1))))))
Compiler

Compiled 5181 to 2630 computations (49.2% saved)

localize22.0ms (0.2%)

Local error

Found 3 expressions with local error:

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

rewrite141.0ms (1%)

Algorithm
rewrite-expression-head
Error
0b
Rules
11×add-sqr-sqrt_binary64
10×add-cbrt-cube_binary64
10×add-exp-log_binary64
*-un-lft-identity_binary64
add-cube-cbrt_binary64
Counts
3 → 62
Calls

3 calls:

15.0ms
(/.f64 (*.f64 (cos.f64 th) (+.f64 (*.f64 a2 a2) (*.f64 a1 a1))) (sqrt.f64 2))
10.0ms
(*.f64 (cos.f64 th) (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)))
5.0ms
(+.f64 (*.f64 a2 a2) (*.f64 a1 a1))
Compiler

Compiled 1316 to 409 computations (68.9% saved)

series306.0ms (2.1%)

Error
0b
Counts
3 → 48
Calls

3 calls:

144.0ms
(/.f64 (*.f64 (cos.f64 th) (+.f64 (*.f64 a2 a2) (*.f64 a1 a1))) (sqrt.f64 2))
95.0ms
(*.f64 (cos.f64 th) (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)))
37.0ms
(+.f64 (*.f64 a2 a2) (*.f64 a1 a1))
Compiler

Compiled 1841 to 1478 computations (19.7% saved)

simplify241.0ms (1.7%)

Algorithm
egg-herbie
Rules
359×times-frac_binary64
357×cancel-sign-sub-inv_binary64
324×distribute-rgt-in_binary64
296×distribute-lft-in_binary64
206×associate-/l/_binary64
Counts
110 → 99
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
01812692
14922396
218522345
345532332
449972332
549932332
649762332

prune116.0ms (0.8%)

Pruning

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New98199
Fresh257
Picked011
Done011
Total1008108
Error
0b
Counts
108 → 8
Alt Table
StatusErrorProgram
0.4b
(*.f64 (*.f64 (cos.f64 th) (/.f64 (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1))) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))))) (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2))))
0.4b
(/.f64 (*.f64 (cos.f64 th) (+.f64 (*.f64 a2 a2) (*.f64 a1 a1))) (sqrt.f64 2))
0.4b
(*.f64 (cos.f64 th) (*.f64 (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1))) (/.f64 (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1))) (sqrt.f64 2))))
0.6b
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2))))
0.4b
(*.f64 (cos.f64 th) (/.f64 (/.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (cbrt.f64 (sqrt.f64 2))))
0.5b
(*.f64 (*.f64 (cos.f64 th) (/.f64 (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1))) (sqrt.f64 (sqrt.f64 2)))) (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (sqrt.f64 (sqrt.f64 2))))
0.6b
(/.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (sqrt.f64 (sqrt.f64 2)))
0.4b
(*.f64 (cos.f64 th) (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (/.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1))))))
Compiler

Compiled 1498 to 686 computations (54.2% saved)

localize27.0ms (0.2%)

Local error

Found 4 expressions with local error:

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

rewrite651.0ms (4.5%)

Algorithm
rewrite-expression-head
Error
0b
Rules
195×times-frac_binary64
111×add-sqr-sqrt_binary64
94×cbrt-prod_binary64
91×*-un-lft-identity_binary64
91×add-cube-cbrt_binary64
Counts
4 → 225
Calls

4 calls:

48.0ms
(*.f64 (cos.f64 th) (/.f64 (/.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (cbrt.f64 (sqrt.f64 2))))
24.0ms
(/.f64 (/.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (cbrt.f64 (sqrt.f64 2)))
16.0ms
(/.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))))
9.0ms
(+.f64 (*.f64 a2 a2) (*.f64 a1 a1))
Compiler

Compiled 7820 to 4642 computations (40.6% saved)

series501.0ms (3.5%)

Error
0b
Counts
4 → 54
Calls

4 calls:

189.0ms
(/.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))))
157.0ms
(*.f64 (cos.f64 th) (/.f64 (/.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (cbrt.f64 (sqrt.f64 2))))
66.0ms
(/.f64 (/.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (cbrt.f64 (sqrt.f64 2)))
50.0ms
(+.f64 (*.f64 a2 a2) (*.f64 a1 a1))
Compiler

Compiled 2328 to 1987 computations (14.6% saved)

simplify543.0ms (3.7%)

Algorithm
egg-herbie
Rules
523×associate-/r/_binary64
224×associate-*l*_binary64
214×associate-*r*_binary64
206×associate-/l*_binary64
186×associate-/l/_binary64
Counts
279 → 268
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
033910310
18219649
229499503
345668917
449588917
549538917

prune305.0ms (2.1%)

Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New2671268
Fresh145
Picked101
Done022
Total2697276
Error
0b
Counts
276 → 7
Alt Table
StatusErrorProgram
0.4b
(*.f64 (*.f64 (cos.f64 th) (/.f64 (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1))) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))))) (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2))))
0.4b
(/.f64 (*.f64 (cos.f64 th) (+.f64 (*.f64 a2 a2) (*.f64 a1 a1))) (sqrt.f64 2))
0.4b
(*.f64 (cos.f64 th) (*.f64 (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1))) (/.f64 (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1))) (sqrt.f64 2))))
0.6b
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2))))
0.4b
(*.f64 (cos.f64 th) (/.f64 (*.f64 (cbrt.f64 1/2) (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2))))
0.5b
(*.f64 (*.f64 (cos.f64 th) (/.f64 (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1))) (sqrt.f64 (sqrt.f64 2)))) (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (sqrt.f64 (sqrt.f64 2))))
0.6b
(/.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (sqrt.f64 (sqrt.f64 2)))
Compiler

Compiled 5393 to 3056 computations (43.3% saved)

regimes3.3s (22.7%)

Accuracy

Total 0.4b remaining (88%)

Threshold costs 0.4b (88%)

Compiler

Compiled 41699 to 29208 computations (30% saved)

simplify4.0ms (0%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
01627
11927
21927

end9.0ms (0.1%)

Remove

(sort a1 a2)

Compiler

Compiled 60 to 45 computations (25% saved)

sample3.6s (24.6%)

Algorithm
intervals
Results
855.0ms1773×body1024valid
836.0ms1545×body1024invalid
563.0ms4892×body128valid
267.0ms894×body512valid
216.0ms714×body512invalid
93.0ms440×body256valid
78.0ms394×body256invalid
68.0ms645×body128invalid
2.0msbody2048valid
Compiler

Compiled 216 to 149 computations (31% saved)

Profiling

Loading profile data...