Details

Time bar (total: 11.8s)

analyze1.0s (8.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 (39%)

Symmetry

(sort a1 a2)

Results
1.3s1845×body1024valid
1.1s1646×body1024invalid
871.0ms4984×body128valid
455.0ms855×body512invalid
423.0ms938×body512valid
150.0ms487×body256valid
118.0ms655×body128invalid
116.0ms389×body256invalid
2.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

prune6.0ms (0%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New022
Fresh011
Picked000
Done000
Total033
Error
0.3b
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.5b
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
Compiler

Compiled 108 to 70 computations (35.2% saved)

localize8.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(cos.f64 th)
0.0b
(fma.f64 a1 a1 (*.f64 a2 a2))
0.2b
(*.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))

series108.0ms (0.9%)

Counts
4 → 88
Calls

4 calls:

77.0ms
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
23.0ms
(/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))
6.0ms
(fma.f64 a1 a1 (*.f64 a2 a2))
2.0ms
(cos.f64 th)

rewrite19.0ms (0.2%)

Algorithm
rewrite-expression-head
Rules
41×add-sqr-sqrt_binary64
38×times-frac_binary64
33×*-un-lft-identity_binary64
33×add-cube-cbrt_binary64
22×associate-*r*_binary64
Counts
4 → 104
Calls

4 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))
1.0ms
(cos.f64 th)
0.0ms
(fma.f64 a1 a1 (*.f64 a2 a2))

simplify159.0ms (1.3%)

Algorithm
egg-herbie
Rules
486×associate-*l*_binary64
420×associate-*r*_binary64
336×associate-/l*_binary64
297×fma-neg_binary64
276×associate-*r/_binary64
Counts
192 → 191
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01863723
14013380
213803332
344253332
447883332
549793332
649713332

prune188.0ms (1.6%)

Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New1847191
Fresh011
Picked101
Done000
Total1858193
Error
0b
Counts
193 → 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)))
1.3b
(*.f64 (cos.f64 th) (/.f64 (*.f64 (cbrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (cbrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2)))) (/.f64 (sqrt.f64 2) (cbrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))))))
0.7b
(*.f64 (cos.f64 th) (*.f64 (/.f64 1 (sqrt.f64 (sqrt.f64 2))) (/.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (sqrt.f64 (sqrt.f64 2)))))
0.5b
(*.f64 (cos.f64 th) (/.f64 (/.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))))
0.6b
(*.f64 (*.f64 (cos.f64 th) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 (sqrt.f64 2)))) (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (sqrt.f64 (sqrt.f64 2))))
0.6b
(*.f64 (cbrt.f64 (*.f64 (*.f64 (cos.f64 th) (cos.f64 th)) (cos.f64 th))) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
0.8b
(*.f64 (*.f64 (cbrt.f64 (cos.f64 th)) (cbrt.f64 (cos.f64 th))) (*.f64 (cbrt.f64 (cos.f64 th)) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))))
17.7b
(*.f64 (*.f64 (/.f64 (hypot.f64 a2 a1) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (cos.f64 th))) (*.f64 (/.f64 (hypot.f64 a2 a1) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (cos.f64 th))))
Compiler

Compiled 4451 to 2054 computations (53.9% 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.3b
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1))
0.7b
(/.f64 (cos.f64 th) (sqrt.f64 2))

series137.0ms (1.2%)

Counts
4 → 88
Calls

4 calls:

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

rewrite46.0ms (0.4%)

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:

14.0ms
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2))
9.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))
3.0ms
(/.f64 (cos.f64 th) (sqrt.f64 2))

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

prune297.0ms (2.5%)

Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New2954299
Fresh437
Picked101
Done000
Total3007307
Error
0b
Counts
307 → 7
Alt Table
StatusErrorProgram
0.6b
(*.f64 (cbrt.f64 (*.f64 (*.f64 (cos.f64 th) (cos.f64 th)) (cos.f64 th))) (/.f64 (fma.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 (/.f64 (cos.f64 th) (sqrt.f64 2)) a2) a2))
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.5b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (/.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))) (*.f64 a2 a2)))
0.5b
(*.f64 (cos.f64 th) (/.f64 (/.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))))
0.8b
(*.f64 (*.f64 (cbrt.f64 (cos.f64 th)) (cbrt.f64 (cos.f64 th))) (*.f64 (cbrt.f64 (cos.f64 th)) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))))
0.5b
(+.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)))
Compiler

Compiled 8812 to 4866 computations (44.8% 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.4b
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) a1)
0.7b
(/.f64 (cos.f64 th) (sqrt.f64 2))

series48.0ms (0.4%)

Counts
2 → 48
Calls

2 calls:

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

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

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

simplify97.0ms (0.8%)

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

prune306.0ms (2.6%)

Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New3010301
Fresh066
Picked011
Done000
Total3017308
Error
0b
Counts
308 → 7
Alt Table
StatusErrorProgram
0.6b
(*.f64 (cbrt.f64 (*.f64 (*.f64 (cos.f64 th) (cos.f64 th)) (cos.f64 th))) (/.f64 (fma.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 (/.f64 (cos.f64 th) (sqrt.f64 2)) a2) a2))
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.5b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (/.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))) (*.f64 a2 a2)))
0.5b
(*.f64 (cos.f64 th) (/.f64 (/.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))))
0.8b
(*.f64 (*.f64 (cbrt.f64 (cos.f64 th)) (cbrt.f64 (cos.f64 th))) (*.f64 (cbrt.f64 (cos.f64 th)) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))))
0.5b
(+.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)))
Compiler

Compiled 8631 to 5033 computations (41.7% saved)

localize13.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))) (*.f64 a1 a1))
0.6b
(/.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2)))
0.6b
(/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2)))
0.7b
(/.f64 (cos.f64 th) (sqrt.f64 2))

series43.0ms (0.4%)

Counts
3 → 48
Calls

3 calls:

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

rewrite192.0ms (1.6%)

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

3 calls:

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

simplify658.0ms (5.6%)

Algorithm
egg-herbie
Rules
637×fma-def_binary64
454×associate-*l/_binary64
395×associate-/r/_binary64
388×*-commutative_binary64
387×associate-/l/_binary64
Counts
759 → 794
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
046421834
1130920764
2272619880
3396519680
4498119680
5497119680

prune1.1s (9%)

Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New8450845
Fresh055
Picked011
Done011
Total8457852
Error
0b
Counts
852 → 7
Alt Table
StatusErrorProgram
0.6b
(*.f64 (cbrt.f64 (*.f64 (*.f64 (cos.f64 th) (cos.f64 th)) (cos.f64 th))) (/.f64 (fma.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 (/.f64 (cos.f64 th) (sqrt.f64 2)) a2) a2))
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.5b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (/.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))) (*.f64 a2 a2)))
0.5b
(*.f64 (cos.f64 th) (/.f64 (/.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))))
0.8b
(*.f64 (*.f64 (cbrt.f64 (cos.f64 th)) (cbrt.f64 (cos.f64 th))) (*.f64 (cbrt.f64 (cos.f64 th)) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))))
0.5b
(+.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)))
Compiler

Compiled 32267 to 21068 computations (34.7% saved)

regimes2.5s (20.8%)

Accuracy

Total 0.4b remaining (94.1%)

Threshold costs 0.4b (94.1%)

Counts
226 → 1
Compiler

Compiled 47317 to 32861 computations (30.6% saved)

simplify2.0ms (0%)

Algorithm
egg-herbie
Rules
*-commutative_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01426
11626
21626

end132.0ms (1.1%)

Remove

(sort a1 a2)

Compiler

Compiled 244 to 163 computations (33.2% saved)

Profiling

Loading profile data...