Details

Time bar (total: 10.3s)

analyze967.0ms (9.4%)

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)

sample87.0ms (0.8%)

Algorithm
intervals
Results
17.0ms173×body128valid
16.0ms51×body1024valid
12.0ms39×body1024invalid
5.0ms22×body512valid
5.0ms22×body512invalid
3.0ms17×body256invalid
2.0ms26×body128invalid
2.0ms10×body256valid
Compiler

Compiled 48 to 34 computations (29.2% saved)

simplify10.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

prune5.0ms (0%)

Pruning

2 alts after pruning (2 fresh and 0 done)

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

Compiled 92 to 63 computations (31.5% saved)

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

rewrite138.0ms (1.3%)

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

11.0ms
(*.f64 (cos.f64 th) (/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 2)))
7.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)

series162.0ms (1.6%)

Error
0.3b
Counts
3 → 42
Calls

3 calls:

81.0ms
(*.f64 (cos.f64 th) (/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 2)))
39.0ms
(/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 2))
23.0ms
(+.f64 (*.f64 a1 a1) (*.f64 a2 a2))
Compiler

Compiled 1486 to 1213 computations (18.4% saved)

simplify122.0ms (1.2%)

Algorithm
egg-herbie
Rules
360×sub-neg_binary64
341×unswap-sqr_binary64
336×associate-/l*_binary64
303×*-commutative_binary64
272×associate-*r/_binary64
Counts
136 → 126
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01743337
14453089
214982993
341582993
450242993

prune102.0ms (1%)

Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New1188126
Fresh101
Picked101
Done000
Total1208128
Error
0.0b
Counts
128 → 8
Alt Table
StatusErrorProgram
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.5b
(*.f64 (/.f64 (cos.f64 th) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (cbrt.f64 (sqrt.f64 2))))
1.4b
(*.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.7b
(*.f64 (cos.f64 th) (*.f64 (/.f64 1 (sqrt.f64 (sqrt.f64 2))) (/.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)) (sqrt.f64 (sqrt.f64 2)))))
0.4b
(*.f64 (*.f64 (cos.f64 th) (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)))) (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (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))))))
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))))
Compiler

Compiled 2094 to 933 computations (55.4% saved)

localize13.0ms (0.1%)

Local error

Found 4 expressions with local error:

0.2b
(/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (/.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)))))
0.4b
(/.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1))))
7.0b
(sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)))
7.0b
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))

rewrite653.0ms (6.3%)

Algorithm
rewrite-expression-head
Error
0b
Rules
540×times-frac_binary64
429×sqrt-prod_binary64
302×add-sqr-sqrt_binary64
295×*-un-lft-identity_binary64
295×add-cube-cbrt_binary64
Counts
4 → 413
Calls

4 calls:

21.0ms
(/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (/.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)))))
8.0ms
(/.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1))))
4.0ms
(sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)))
4.0ms
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))
Compiler

Compiled 12677 to 3357 computations (73.5% saved)

series190.0ms (1.8%)

Error
0.0b
Counts
4 → 54
Calls

4 calls:

49.0ms
(/.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1))))
39.0ms
(/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (/.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)))))
36.0ms
(sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)))
35.0ms
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))
Compiler

Compiled 2951 to 2043 computations (30.8% saved)

simplify533.0ms (5.2%)

Algorithm
egg-herbie
Rules
320×distribute-rgt-in_binary64
309×associate-/r/_binary64
304×associate-/l/_binary64
230×cancel-sign-sub-inv_binary64
196×associate-*l/_binary64
Counts
467 → 436
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
038121842
187220630
2267019112
3342818539
4496918539

prune221.0ms (2.1%)

Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New4342436
Fresh257
Picked011
Done000
Total4368444
Error
0b
Counts
444 → 8
Alt Table
StatusErrorProgram
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 (/.f64 (cos.f64 th) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (cbrt.f64 (sqrt.f64 2))))
1.4b
(*.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 (*.f64 (cos.f64 th) (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)))) (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (sqrt.f64 2)))
0.5b
(*.f64 (cos.f64 th) (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (sqrt.f64 (/.f64 2 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))))))
0.5b
(*.f64 (cos.f64 th) (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (*.f64 (sqrt.f64 (sqrt.f64 2)) (/.f64 (sqrt.f64 (sqrt.f64 2)) (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))))))
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))))))
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))))
Compiler

Compiled 7079 to 2284 computations (67.7% saved)

localize14.0ms (0.1%)

Local error

Found 4 expressions with local error:

0.3b
(*.f64 (*.f64 (cos.f64 th) (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)))) (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (sqrt.f64 2)))
0.4b
(/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (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)))

rewrite200.0ms (1.9%)

Algorithm
rewrite-expression-head
Error
0b
Rules
84×sqrt-prod_binary64
72×times-frac_binary64
63×add-sqr-sqrt_binary64
59×*-un-lft-identity_binary64
59×add-cube-cbrt_binary64
Counts
4 → 158
Calls

4 calls:

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

Compiled 4795 to 1205 computations (74.9% saved)

series249.0ms (2.4%)

Error
0b
Counts
4 → 60
Calls

4 calls:

86.0ms
(*.f64 (*.f64 (cos.f64 th) (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)))) (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (sqrt.f64 2)))
50.0ms
(/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (sqrt.f64 2))
35.0ms
(sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)))
35.0ms
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))
Compiler

Compiled 3534 to 2482 computations (29.8% saved)

simplify234.0ms (2.3%)

Algorithm
egg-herbie
Rules
794×times-frac_binary64
242×associate-*l*_binary64
207×associate-*r*_binary64
189×cancel-sign-sub-inv_binary64
186×distribute-rgt-in_binary64
Counts
218 → 157
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
02785983
16925674
223995578
347215578
449915578
549635578

prune115.0ms (1.1%)

Pruning

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New1570157
Fresh066
Picked011
Done011
Total1578165
Error
0b
Counts
165 → 8
Alt Table
StatusErrorProgram
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 (/.f64 (cos.f64 th) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (cbrt.f64 (sqrt.f64 2))))
1.4b
(*.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 (*.f64 (cos.f64 th) (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)))) (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (sqrt.f64 2)))
0.5b
(*.f64 (cos.f64 th) (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (sqrt.f64 (/.f64 2 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))))))
0.5b
(*.f64 (cos.f64 th) (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (*.f64 (sqrt.f64 (sqrt.f64 2)) (/.f64 (sqrt.f64 (sqrt.f64 2)) (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))))))
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))))))
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))))
Compiler

Compiled 3310 to 1221 computations (63.1% saved)

localize12.0ms (0.1%)

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.2b
(/.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)))

rewrite398.0ms (3.9%)

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:

31.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))))
14.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)))
10.0ms
(/.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))))
4.0ms
(+.f64 (*.f64 a2 a2) (*.f64 a1 a1))
Compiler

Compiled 7820 to 4642 computations (40.6% saved)

series287.0ms (2.8%)

Error
0b
Counts
4 → 54
Calls

4 calls:

111.0ms
(/.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))))
82.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))))
38.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)))
31.0ms
(+.f64 (*.f64 a2 a2) (*.f64 a1 a1))
Compiler

Compiled 2315 to 1978 computations (14.6% saved)

simplify335.0ms (3.3%)

Algorithm
egg-herbie
Rules
467×associate-/r/_binary64
203×associate-*l*_binary64
198×associate-*r*_binary64
181×associate-/l/_binary64
180×associate--l+_binary64
Counts
279 → 268
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
03119936
17779305
227969209
347068623
449648623
549468623

prune224.0ms (2.2%)

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.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 (/.f64 (cos.f64 th) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (cbrt.f64 (sqrt.f64 2))))
0.4b
(*.f64 (*.f64 (cos.f64 th) (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)))) (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (sqrt.f64 2)))
0.5b
(*.f64 (cos.f64 th) (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (sqrt.f64 (/.f64 2 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))))))
0.4b
(/.f64 (*.f64 (cos.f64 th) (/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (pow.f64 (cbrt.f64 (sqrt.f64 2)) 2))) (cbrt.f64 (sqrt.f64 2)))
0.5b
(*.f64 (cos.f64 th) (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (*.f64 (sqrt.f64 (sqrt.f64 2)) (/.f64 (sqrt.f64 (sqrt.f64 2)) (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))))))
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 5474 to 3087 computations (43.6% saved)

regimes2.4s (22.9%)

Accuracy

Total 0.3b remaining (83.8%)

Threshold costs 0.3b (83.8%)

Compiler

Compiled 41755 to 27680 computations (33.7% saved)

simplify3.0ms (0%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
01534
11734
21734

end8.0ms (0.1%)

Remove

(sort a1 a2)

Compiler

Compiled 75 to 39 computations (48% saved)

sample2.6s (25.6%)

Algorithm
intervals
Results
571.0ms1783×body1024valid
486.0ms1552×body1024invalid
365.0ms4878×body128valid
210.0ms872×body512valid
177.0ms785×body512invalid
70.0ms465×body256valid
61.0ms403×body256invalid
55.0ms649×body128invalid
1.0msbody2048valid
Compiler

Compiled 228 to 147 computations (35.5% saved)

Profiling

Loading profile data...