Details

Time bar (total: 7.5s)

analyze744.0ms (9.9%)

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 20 to 16 computations (20% saved)

sample73.0ms (1%)

Algorithm
intervals
Results
18.0ms52×body1024invalid
16.0ms55×body1024valid
11.0ms156×body128valid
7.0ms33×body512valid
5.0ms22×body512invalid
2.0ms12×body256valid
2.0ms22×body128invalid
1.0msbody256invalid
Compiler

Compiled 39 to 34 computations (12.8% saved)

simplify97.0ms (1.3%)

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (4.0ms)

IterNodesCost
010620
110620

prune4.0ms (0.1%)

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 0.4b

Counts
2 → 2
Compiler

Compiled 45 to 37 computations (17.8% saved)

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

rewrite31.0ms (0.4%)

Algorithm
rewrite-expression-head
Rules
40×add-sqr-sqrt_binary64_782
38×times-frac_binary64_766
32×*-un-lft-identity_binary64_760 add-cube-cbrt_binary64_795
22×sqrt-prod_binary64_776 associate-*r*_binary64_700
10×add-exp-log_binary64_798 add-cbrt-cube_binary64_796
associate-/r*_binary64_704
add-log-exp_binary64_799 pow1_binary64_821
unswap-sqr_binary64_728 associate-/l*_binary64_705 associate-*l*_binary64_701
cbrt-undiv_binary64_794 prod-exp_binary64_809 flip3-+_binary64_763 associate-/l/_binary64_707 div-inv_binary64_757 flip-+_binary64_734 cbrt-unprod_binary64_793 div-exp_binary64_811
frac-2neg_binary64_771 +-commutative_binary64_690 sum-log_binary64_851 associate-*r/_binary64_702 clear-num_binary64_759 pow-prod-down_binary64_831 *-commutative_binary64_691
Counts
3 → 94
Calls

3 calls:

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

series243.0ms (3.2%)

Counts
3 → 9
Calls

3 calls:

169.0ms
(*.f64 (cos.f64 th) (/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 2)))
53.0ms
(/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 2))
20.0ms
(+.f64 (*.f64 a1 a1) (*.f64 a2 a2))

simplify71.0ms (0.9%)

Algorithm
egg-herbie
Counts
103 → 103
Iterations

Useful iterations: 0 (46.0ms)

IterNodesCost
049772380
149772380

prune124.0ms (1.6%)

Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New958103
Fresh101
Picked101
Done000
Total978105

Merged error: 0b

Counts
105 → 8
Compiler

Compiled 2457 to 958 computations (61% saved)

localize11.0ms (0.1%)

Local error

Found 4 expressions with local error:

0.3b
(*.f64 (*.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (cos.f64 th)) (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (sqrt.f64 2)))
0.5b
(/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (sqrt.f64 2))
6.1b
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))
6.1b
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))

rewrite57.0ms (0.8%)

Algorithm
rewrite-expression-head
Rules
84×sqrt-prod_binary64_776
72×times-frac_binary64_766
61×add-sqr-sqrt_binary64_782
59×*-un-lft-identity_binary64_760 add-cube-cbrt_binary64_795
40×associate-*r*_binary64_700
18×add-exp-log_binary64_798 add-cbrt-cube_binary64_796
11×pow1_binary64_821
10×sqrt-div_binary64_777
associate-*l/_binary64_703 prod-exp_binary64_809 associate-/r*_binary64_704 associate-/l*_binary64_705 cbrt-unprod_binary64_793
flip3-+_binary64_763 flip-+_binary64_734
add-log-exp_binary64_799
cbrt-undiv_binary64_794 div-exp_binary64_811 pow-prod-down_binary64_831
rem-sqrt-square_binary64_773 associate-/l/_binary64_707 sqrt-pow1_binary64_778 div-inv_binary64_757 frac-times_binary64_770 pow1/2_binary64_840
frac-2neg_binary64_771 sqrt-undiv_binary64_781 associate-*l*_binary64_701 associate-*r/_binary64_702 clear-num_binary64_759 *-commutative_binary64_691
Counts
4 → 157
Calls

4 calls:

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

series217.0ms (2.9%)

Counts
4 → 12
Calls

4 calls:

121.0ms
(*.f64 (*.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (cos.f64 th)) (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (sqrt.f64 2)))
49.0ms
(/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (sqrt.f64 2))
24.0ms
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))
23.0ms
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))

simplify78.0ms (1%)

Algorithm
egg-herbie
Counts
169 → 169
Iterations

Useful iterations: 0 (40.0ms)

IterNodesCost
054844501

prune179.0ms (2.4%)

Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New1690169
Fresh077
Picked011
Done000
Total1698177

Merged error: 0b

Counts
177 → 8
Compiler

Compiled 5337 to 1489 computations (72.1% saved)

localize12.0ms (0.2%)

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

rewrite107.0ms (1.4%)

Algorithm
rewrite-expression-head
Rules
540×times-frac_binary64_766
429×sqrt-prod_binary64_776
297×add-sqr-sqrt_binary64_782
295×*-un-lft-identity_binary64_760 add-cube-cbrt_binary64_795
48×associate-/r*_binary64_704
22×sqrt-div_binary64_777
17×associate-/r/_binary64_706
12×associate-/l*_binary64_705
11×flip3-+_binary64_763 add-exp-log_binary64_798 flip-+_binary64_734 add-cbrt-cube_binary64_796
div-inv_binary64_757
pow1_binary64_821
cbrt-undiv_binary64_794 add-log-exp_binary64_799 div-exp_binary64_811
sqrt-undiv_binary64_781
rem-sqrt-square_binary64_773 frac-2neg_binary64_771 associate-/l/_binary64_707 sqrt-pow1_binary64_778 pow1/2_binary64_840 clear-num_binary64_759
Counts
4 → 411
Calls

4 calls:

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

series144.0ms (1.9%)

Counts
4 → 12
Calls

4 calls:

50.0ms
(/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (/.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))))
41.0ms
(/.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))))
29.0ms
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))
23.0ms
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))

simplify230.0ms (3%)

Algorithm
egg-herbie
Counts
423 → 423
Iterations

Useful iterations: 0 (85.0ms)

IterNodesCost
0492216317
1492216317

prune512.0ms (6.8%)

Pruning

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New4230423
Fresh066
Picked011
Done011
Total4238431

Merged error: 0b

Counts
431 → 8
Compiler

Compiled 14057 to 4338 computations (69.1% saved)

localize14.0ms (0.2%)

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

rewrite80.0ms (1.1%)

Algorithm
rewrite-expression-head
Rules
108×times-frac_binary64_766
102×sqrt-prod_binary64_776
86×add-sqr-sqrt_binary64_782
84×*-un-lft-identity_binary64_760 add-cube-cbrt_binary64_795
78×cbrt-prod_binary64_791
58×associate-*r*_binary64_700
38×add-exp-log_binary64_798
29×add-cbrt-cube_binary64_796
16×prod-exp_binary64_809 cbrt-unprod_binary64_793
11×pow1_binary64_821
cbrt-undiv_binary64_794 associate-/r*_binary64_704 div-exp_binary64_811
sqrt-div_binary64_777 associate-/l*_binary64_705
add-log-exp_binary64_799
associate-*l/_binary64_703 flip3-+_binary64_763 flip-+_binary64_734 pow-prod-down_binary64_831
rem-sqrt-square_binary64_773 associate-/l/_binary64_707 sqrt-pow1_binary64_778 div-inv_binary64_757 pow1/2_binary64_840
frac-2neg_binary64_771 frac-times_binary64_770 associate-*l*_binary64_701 associate-*r/_binary64_702 clear-num_binary64_759 *-commutative_binary64_691
Counts
4 → 201
Calls

4 calls:

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

series294.0ms (3.9%)

Counts
4 → 12
Calls

4 calls:

133.0ms
(*.f64 (*.f64 (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (cos.f64 th)) (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2))))
115.0ms
(/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2)))
23.0ms
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))
23.0ms
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))

simplify135.0ms (1.8%)

Algorithm
egg-herbie
Counts
213 → 213
Iterations

Useful iterations: 0 (72.0ms)

IterNodesCost
049646988
149646988

prune337.0ms (4.5%)

Pruning

8 alts after pruning (5 fresh and 3 done)

PrunedKeptTotal
New2130213
Fresh055
Picked011
Done022
Total2138221

Merged error: 0b

Counts
221 → 8
Compiler

Compiled 8262 to 3613 computations (56.3% saved)

regimes650.0ms (8.6%)

Compiler

Compiled 8370 to 5854 computations (30.1% saved)

bsearch0.0ms (0%)

simplify2.0ms (0%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
01734
11734

end0.0ms (0%)

sample3.1s (40.8%)

Algorithm
intervals
Results
537.0ms1760×body1024valid
469.0ms1552×body1024invalid
361.0ms4887×body128valid
197.0ms917×body512valid
165.0ms779×body512invalid
63.0ms430×body256valid
57.0ms397×body256invalid
52.0ms646×body128invalid
3.0msbody2048valid
0.0msbody2048invalid
Compiler

Compiled 1071 to 745 computations (30.4% saved)

Profiling

Loading profile data...