Details

Time bar (total: 12.4s)

analyze1.2s (9.8%)

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.6s (37%)

Symmetry

(sort a1 a2)

Results
1.3s1795×body1024valid
1.1s1575×body1024invalid
927.0ms5114×body128valid
442.0ms934×body512valid
374.0ms800×body512invalid
137.0ms411×body256valid
126.0ms626×body128invalid
120.0ms360×body256invalid
3.0msbody2048valid
Compiler

Compiled 68 to 47 computations (30.9% saved)

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

prune5.0ms (0%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New022
Fresh011
Picked000
Done000
Total033
Error
0.7b
Counts
3 → 2
Alt Table
StatusErrorProgram
0.8b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
0.8b
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
Compiler

Compiled 108 to 70 computations (35.2% saved)

localize10.0ms (0.1%)

Local error

Found 4 expressions with local error:

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

series133.0ms (1.1%)

Counts
4 → 88
Calls

4 calls:

71.0ms
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
27.0ms
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2))
26.0ms
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1))
8.0ms
(/.f64 (cos.f64 th) (sqrt.f64 2))

rewrite38.0ms (0.3%)

Algorithm
rewrite-expression-head
Rules
58×times-frac_binary64
55×add-sqr-sqrt_binary64
45×*-un-lft-identity_binary64
45×add-cube-cbrt_binary64
44×associate-*l*_binary64
Counts
4 → 151
Calls

4 calls:

10.0ms
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
8.0ms
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1))
7.0ms
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2))
3.0ms
(/.f64 (cos.f64 th) (sqrt.f64 2))

simplify144.0ms (1.2%)

Algorithm
egg-herbie
Rules
652×fma-def_binary64
381×fma-neg_binary64
215×associate-*r*_binary64
196×*-commutative_binary64
194×associate-/r/_binary64
Counts
239 → 248
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
02614527
17044412
222934278
348404278
450194278

prune455.0ms (3.7%)

Pruning

13 alts after pruning (13 fresh and 0 done)

PrunedKeptTotal
New28712299
Fresh011
Picked101
Done000
Total28813301
Error
0b
Counts
301 → 13
Alt Table
StatusErrorProgram
15.7b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (sqrt.f64 (/.f64 (cos.f64 th) (sqrt.f64 2))) (*.f64 (sqrt.f64 (/.f64 (cos.f64 th) (sqrt.f64 2))) (*.f64 a2 a2))))
15.7b
(+.f64 (*.f64 (sqrt.f64 (/.f64 (cos.f64 th) (sqrt.f64 2))) (*.f64 (sqrt.f64 (/.f64 (cos.f64 th) (sqrt.f64 2))) (*.f64 a1 a1))) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
0.7b
(+.f64 (*.f64 (/.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))) (*.f64 a1 a1)) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
0.8b
(+.f64 (*.f64 (/.f64 1 (sqrt.f64 (sqrt.f64 2))) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (*.f64 a1 a1))) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
0.8b
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
1.0b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (*.f64 (/.f64 1 (sqrt.f64 (sqrt.f64 2))) (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2)))) (*.f64 a2 a2)))
28.1b
(+.f64 (fma.f64 1/24 (*.f64 (/.f64 (pow.f64 th 4) (sqrt.f64 2)) (*.f64 a1 a1)) (fma.f64 a1 (/.f64 a1 (sqrt.f64 2)) (fma.f64 (*.f64 (/.f64 (pow.f64 th 6) (sqrt.f64 2)) (*.f64 a1 a1)) -1/720 (*.f64 (*.f64 (/.f64 (*.f64 th th) (sqrt.f64 2)) (*.f64 a1 a1)) -1/2)))) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
0.9b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (/.f64 (*.f64 (cbrt.f64 (cos.f64 th)) (cbrt.f64 (cos.f64 th))) 1) (*.f64 (/.f64 (cbrt.f64 (cos.f64 th)) (sqrt.f64 2)) (*.f64 a2 a2))))
15.7b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (sqrt.f64 (/.f64 (cos.f64 th) (sqrt.f64 2))) (*.f64 a2 (*.f64 a2 (sqrt.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)))))))
0.7b
(/.f64 (*.f64 (sqrt.f64 2) (*.f64 (cos.f64 th) (fma.f64 a1 a1 (*.f64 a2 a2)))) 2)
0.5b
(+.f64 (*.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) a1) a1) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
0.7b
(+.f64 (/.f64 (*.f64 (cos.f64 th) (pow.f64 a1 2)) (sqrt.f64 2)) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
27.5b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (fma.f64 1/24 (*.f64 (/.f64 (pow.f64 th 4) (sqrt.f64 2)) (*.f64 a2 a2)) (fma.f64 a2 (/.f64 a2 (sqrt.f64 2)) (fma.f64 (*.f64 (/.f64 (pow.f64 th 6) (sqrt.f64 2)) (*.f64 a2 a2)) -1/720 (*.f64 (*.f64 (/.f64 (*.f64 th th) (sqrt.f64 2)) (*.f64 a2 a2)) -1/2)))))
Compiler

Compiled 9272 to 5196 computations (44% saved)

localize10.0ms (0.1%)

Local error

Found 4 expressions with local error:

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

series50.0ms (0.4%)

Counts
2 → 48
Calls

2 calls:

29.0ms
(*.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) a1) a1)
21.0ms
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) a1)

rewrite20.0ms (0.2%)

Algorithm
rewrite-expression-head
Rules
25×add-sqr-sqrt_binary64
23×associate-*l*_binary64
20×times-frac_binary64
17×*-un-lft-identity_binary64
17×add-cube-cbrt_binary64
Counts
2 → 67
Calls

2 calls:

6.0ms
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) a1)
6.0ms
(*.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) a1) a1)

simplify91.0ms (0.7%)

Algorithm
egg-herbie
Rules
611×fma-def_binary64
552×associate-/r*_binary64
490×associate-*l/_binary64
392×times-frac_binary64
352×associate-*r/_binary64
Counts
115 → 119
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
01411936
13511751
210331743
328361737
449511737
552731737

prune370.0ms (3%)

Pruning

11 alts after pruning (10 fresh and 1 done)

PrunedKeptTotal
New3001301
Fresh3912
Picked011
Done000
Total30311314
Error
0b
Counts
314 → 11
Alt Table
StatusErrorProgram
0.5b
(+.f64 (*.f64 (*.f64 (/.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))) a1) a1) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
0.7b
(+.f64 (*.f64 (/.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))) (*.f64 a1 a1)) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
0.8b
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
1.0b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (*.f64 (/.f64 1 (sqrt.f64 (sqrt.f64 2))) (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2)))) (*.f64 a2 a2)))
15.7b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (sqrt.f64 (/.f64 (cos.f64 th) (sqrt.f64 2))) (*.f64 a2 (*.f64 a2 (sqrt.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)))))))
15.7b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (sqrt.f64 (/.f64 (cos.f64 th) (sqrt.f64 2))) (*.f64 (sqrt.f64 (/.f64 (cos.f64 th) (sqrt.f64 2))) (*.f64 a2 a2))))
0.7b
(/.f64 (*.f64 (sqrt.f64 2) (*.f64 (cos.f64 th) (fma.f64 a1 a1 (*.f64 a2 a2)))) 2)
0.5b
(+.f64 (*.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) a1) a1) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
0.7b
(+.f64 (/.f64 (*.f64 (cos.f64 th) (pow.f64 a1 2)) (sqrt.f64 2)) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
27.5b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (fma.f64 1/24 (*.f64 (/.f64 (pow.f64 th 4) (sqrt.f64 2)) (*.f64 a2 a2)) (fma.f64 a2 (/.f64 a2 (sqrt.f64 2)) (fma.f64 (*.f64 (/.f64 (pow.f64 th 6) (sqrt.f64 2)) (*.f64 a2 a2)) -1/720 (*.f64 (*.f64 (/.f64 (*.f64 th th) (sqrt.f64 2)) (*.f64 a2 a2)) -1/2)))))
0.9b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (/.f64 (*.f64 (cbrt.f64 (cos.f64 th)) (cbrt.f64 (cos.f64 th))) 1) (*.f64 (/.f64 (cbrt.f64 (cos.f64 th)) (sqrt.f64 2)) (*.f64 a2 a2))))
Compiler

Compiled 8917 to 5241 computations (41.2% saved)

localize14.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.3b
(*.f64 (/.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))) a1)
0.6b
(/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2)))
0.7b
(/.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2)))
0.8b
(/.f64 (cos.f64 th) (sqrt.f64 2))

series36.0ms (0.3%)

Counts
3 → 48
Calls

3 calls:

20.0ms
(*.f64 (/.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))) a1)
9.0ms
(/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2)))
7.0ms
(/.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2)))

rewrite238.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:

48.0ms
(*.f64 (/.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))) a1)
14.0ms
(/.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2)))
5.0ms
(/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2)))

simplify649.0ms (5.2%)

Algorithm
egg-herbie
Rules
660×fma-def_binary64
626×associate-*r/_binary64
470×*-commutative_binary64
387×associate-/l/_binary64
380×fma-neg_binary64
Counts
754 → 787
Iterations

Useful iterations: 4 (0.0ms)

IterNodesCost
045721445
1111619716
2224918856
3378018654
4487318645
5495918645

prune1.3s (10.1%)

Pruning

11 alts after pruning (9 fresh and 2 done)

PrunedKeptTotal
New8380838
Fresh099
Picked011
Done011
Total83811849
Error
0b
Counts
849 → 11
Alt Table
StatusErrorProgram
0.5b
(+.f64 (*.f64 (*.f64 (/.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))) a1) a1) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
0.7b
(+.f64 (*.f64 (/.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))) (*.f64 a1 a1)) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
0.8b
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
1.0b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (*.f64 (/.f64 1 (sqrt.f64 (sqrt.f64 2))) (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2)))) (*.f64 a2 a2)))
15.7b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (sqrt.f64 (/.f64 (cos.f64 th) (sqrt.f64 2))) (*.f64 a2 (*.f64 a2 (sqrt.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)))))))
15.7b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (sqrt.f64 (/.f64 (cos.f64 th) (sqrt.f64 2))) (*.f64 (sqrt.f64 (/.f64 (cos.f64 th) (sqrt.f64 2))) (*.f64 a2 a2))))
0.7b
(/.f64 (*.f64 (sqrt.f64 2) (*.f64 (cos.f64 th) (fma.f64 a1 a1 (*.f64 a2 a2)))) 2)
0.5b
(+.f64 (*.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) a1) a1) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
0.7b
(+.f64 (/.f64 (*.f64 (cos.f64 th) (pow.f64 a1 2)) (sqrt.f64 2)) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
27.5b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (fma.f64 1/24 (*.f64 (/.f64 (pow.f64 th 4) (sqrt.f64 2)) (*.f64 a2 a2)) (fma.f64 a2 (/.f64 a2 (sqrt.f64 2)) (fma.f64 (*.f64 (/.f64 (pow.f64 th 6) (sqrt.f64 2)) (*.f64 a2 a2)) -1/720 (*.f64 (*.f64 (/.f64 (*.f64 th th) (sqrt.f64 2)) (*.f64 a2 a2)) -1/2)))))
0.9b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (/.f64 (*.f64 (cbrt.f64 (cos.f64 th)) (cbrt.f64 (cos.f64 th))) 1) (*.f64 (/.f64 (cbrt.f64 (cos.f64 th)) (sqrt.f64 2)) (*.f64 a2 a2))))
Compiler

Compiled 32334 to 21956 computations (32.1% saved)

localize9.0ms (0.1%)

Local error

Found 4 expressions with local error:

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

series121.0ms (1%)

Counts
4 → 112
Calls

4 calls:

52.0ms
(/.f64 (*.f64 (sqrt.f64 2) (*.f64 (cos.f64 th) (fma.f64 a1 a1 (*.f64 a2 a2)))) 2)
40.0ms
(*.f64 (sqrt.f64 2) (*.f64 (cos.f64 th) (fma.f64 a1 a1 (*.f64 a2 a2))))
27.0ms
(*.f64 (cos.f64 th) (fma.f64 a1 a1 (*.f64 a2 a2)))
2.0ms
(cos.f64 th)

rewrite20.0ms (0.2%)

Algorithm
rewrite-expression-head
Rules
20×add-cbrt-cube_binary64
20×add-exp-log_binary64
12×add-sqr-sqrt_binary64
11×pow1_binary64
10×*-un-lft-identity_binary64
Counts
4 → 83
Calls

4 calls:

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

simplify175.0ms (1.4%)

Algorithm
egg-herbie
Rules
810×cancel-sign-sub-inv_binary64
531×fma-neg_binary64
314×associate-*r*_binary64
237×associate-*l*_binary64
222×fma-def_binary64
Counts
195 → 176
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
02404283
16253788
226083691
343573689
449833689
549673689

prune187.0ms (1.5%)

Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New1706176
Fresh718
Picked101
Done112
Total1798187
Error
0b
Counts
187 → 8
Alt Table
StatusErrorProgram
0.7b
(/.f64 (*.f64 (sqrt.f64 2) (*.f64 (log1p.f64 (expm1.f64 (cos.f64 th))) (fma.f64 a1 a1 (*.f64 a2 a2)))) 2)
0.7b
(/.f64 (*.f64 (sqrt.f64 2) (*.f64 (*.f64 (cos.f64 th) (hypot.f64 a1 a2)) (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))))) 2)
0.7b
(/.f64 (*.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (cos.f64 th)) (sqrt.f64 2))
0.5b
(+.f64 (*.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) a1) a1) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
15.7b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (sqrt.f64 (/.f64 (cos.f64 th) (sqrt.f64 2))) (*.f64 (sqrt.f64 (/.f64 (cos.f64 th) (sqrt.f64 2))) (*.f64 a2 a2))))
0.7b
(/.f64 (*.f64 (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))) (*.f64 (cbrt.f64 (sqrt.f64 2)) (*.f64 (cos.f64 th) (fma.f64 a1 a1 (*.f64 a2 a2))))) 2)
0.8b
(/.f64 (*.f64 (sqrt.f64 (sqrt.f64 2)) (*.f64 (sqrt.f64 (sqrt.f64 2)) (*.f64 (cos.f64 th) (fma.f64 a1 a1 (*.f64 a2 a2))))) 2)
0.7b
(/.f64 (*.f64 (cos.f64 th) (*.f64 (+.f64 (pow.f64 a1 2) (pow.f64 a2 2)) (sqrt.f64 2))) 2)
Compiler

Compiled 4212 to 2204 computations (47.7% saved)

regimes2.3s (18.3%)

Accuracy

Total 0.5b remaining (94.9%)

Threshold costs 0.5b (94.9%)

Counts
226 → 1
Compiler

Compiled 47817 to 33667 computations (29.6% saved)

simplify2.0ms (0%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
01430
11830
21830

end305.0ms (2.5%)

Compiler

Compiled 262 to 188 computations (28.2% saved)

Profiling

Loading profile data...