Details

Time bar (total: 8.2s)

analyze938.0ms (11.5%)

Algorithm
search
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
027980
127980
033
133
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)

sample88.0ms (1.1%)

Algorithm
intervals
Results
20.0ms61×body1024valid
20.0ms49×body1024invalid
13.0ms160×body128valid
8.0ms31×body512invalid
5.0ms21×body512valid
2.0ms14×body256valid
2.0ms19×body128invalid
1.0msbody256invalid
Compiler

Compiled 39 to 34 computations (12.8% saved)

simplify8.0ms (0.1%)

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (4.0ms)

IterNodesCost
010620
110620

prune5.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
Compiler

Compiled 45 to 37 computations (17.8% saved)

localize11.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_100
38×times-frac_binary64_84
32×add-cube-cbrt_binary64_113 *-un-lft-identity_binary64_78
22×sqrt-prod_binary64_94 associate-*r*_binary64_18
10×add-cbrt-cube_binary64_114 add-exp-log_binary64_116
associate-/r*_binary64_22
add-log-exp_binary64_117 pow1_binary64_139
associate-*l*_binary64_19 associate-/l*_binary64_23 unswap-sqr_binary64_46
cbrt-unprod_binary64_111 cbrt-undiv_binary64_112 prod-exp_binary64_127 div-exp_binary64_129 flip-+_binary64_52 div-inv_binary64_75 associate-/l/_binary64_25 flip3-+_binary64_81
+-commutative_binary64_8 *-commutative_binary64_9 frac-2neg_binary64_89 pow-prod-down_binary64_149 associate-*r/_binary64_20 clear-num_binary64_77 sum-log_binary64_169
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))

series236.0ms (2.9%)

Counts
3 → 9
Calls

3 calls:

160.0ms
(*.f64 (cos.f64 th) (/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 2)))
55.0ms
(/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 2))
21.0ms
(+.f64 (*.f64 a1 a1) (*.f64 a2 a2))

simplify74.0ms (0.9%)

Algorithm
egg-herbie
Counts
103 → 103
Iterations

Useful iterations: 0 (48.0ms)

IterNodesCost
049772380
149772380

prune126.0ms (1.5%)

Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New967103
Fresh101
Picked101
Done000
Total987105
Error
0.0b
Counts
105 → 7
Compiler

Compiled 2425 to 945 computations (61% saved)

localize18.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 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (*.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))))
6.2b
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))
6.2b
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))

rewrite88.0ms (1.1%)

Algorithm
rewrite-expression-head
Rules
149×add-sqr-sqrt_binary64_100
146×times-frac_binary64_84
127×sqrt-prod_binary64_94
90×cbrt-prod_binary64_109
87×add-cube-cbrt_binary64_113 *-un-lft-identity_binary64_78
58×associate-*r*_binary64_18
27×add-exp-log_binary64_116
21×unswap-sqr_binary64_46
19×add-cbrt-cube_binary64_114
10×associate-*l*_binary64_19
associate-/r*_binary64_22
cbrt-unprod_binary64_111 cbrt-undiv_binary64_112 prod-exp_binary64_127 div-exp_binary64_129 pow1_binary64_139
associate-/l*_binary64_23 sqrt-div_binary64_95
add-log-exp_binary64_117
flip-+_binary64_52 div-inv_binary64_75 flip3-+_binary64_81
sqrt-pow1_binary64_96 rem-sqrt-square_binary64_91 associate-/l/_binary64_25 pow1/2_binary64_158
*-commutative_binary64_9 frac-2neg_binary64_89 frac-times_binary64_88 associate-*l/_binary64_21 pow-prod-down_binary64_149 associate-*r/_binary64_20 clear-num_binary64_77
Counts
4 → 226
Calls

4 calls:

38.0ms
(*.f64 (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (*.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))))
9.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)))

series228.0ms (2.8%)

Counts
4 → 12
Calls

4 calls:

122.0ms
(/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2)))
59.0ms
(*.f64 (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (*.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))))
24.0ms
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))
23.0ms
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))

simplify116.0ms (1.4%)

Algorithm
egg-herbie
Counts
238 → 238
Iterations

Useful iterations: 0 (41.0ms)

IterNodesCost
051818434

prune473.0ms (5.8%)

Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New2380238
Fresh066
Picked011
Done000
Total2387245
Error
0.0b
Counts
245 → 7
Compiler

Compiled 9735 to 4502 computations (53.8% saved)

localize11.0ms (0.1%)

Local error

Found 3 expressions with local error:

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

rewrite23.0ms (0.3%)

Algorithm
rewrite-expression-head
Rules
11×add-sqr-sqrt_binary64_100
10×add-cbrt-cube_binary64_114 add-exp-log_binary64_116
add-cube-cbrt_binary64_113 *-un-lft-identity_binary64_78
sqrt-prod_binary64_94 times-frac_binary64_84 associate-/r*_binary64_22
add-log-exp_binary64_117 pow1_binary64_139
associate-*l/_binary64_21
associate-*l*_binary64_19 flip-+_binary64_52 associate-*r*_binary64_18 flip3-+_binary64_81
cbrt-unprod_binary64_111 cbrt-undiv_binary64_112 prod-exp_binary64_127 div-exp_binary64_129 associate-/l/_binary64_25
+-commutative_binary64_8 *-commutative_binary64_9 frac-2neg_binary64_89 div-inv_binary64_75 associate-/l*_binary64_23 pow-prod-down_binary64_149 unswap-sqr_binary64_46 clear-num_binary64_77 sum-log_binary64_169
Counts
3 → 60
Calls

3 calls:

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

series217.0ms (2.7%)

Counts
3 → 9
Calls

3 calls:

127.0ms
(/.f64 (*.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (cos.f64 th)) (sqrt.f64 2))
70.0ms
(*.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (cos.f64 th))
20.0ms
(+.f64 (*.f64 a1 a1) (*.f64 a2 a2))

simplify85.0ms (1%)

Algorithm
egg-herbie
Counts
69 → 69
Iterations

Useful iterations: 0 (67.0ms)

IterNodesCost
049321303
149321303

prune70.0ms (0.9%)

Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New67269
Fresh235
Picked011
Done011
Total69776
Error
0b
Counts
76 → 7
Compiler

Compiled 1399 to 541 computations (61.3% saved)

localize15.0ms (0.2%)

Local error

Found 4 expressions with local error:

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

rewrite62.0ms (0.8%)

Algorithm
rewrite-expression-head
Rules
71×add-sqr-sqrt_binary64_100
70×times-frac_binary64_84
49×add-cube-cbrt_binary64_113 *-un-lft-identity_binary64_78
46×cbrt-prod_binary64_109
32×add-exp-log_binary64_116
31×associate-*r*_binary64_18
23×sqrt-prod_binary64_94
22×add-cbrt-cube_binary64_114
10×cbrt-undiv_binary64_112 div-exp_binary64_129 associate-/r*_binary64_22
cbrt-unprod_binary64_111 prod-exp_binary64_127
unswap-sqr_binary64_46
associate-*l*_binary64_19
add-log-exp_binary64_117 associate-/l*_binary64_23 pow1_binary64_139
div-inv_binary64_75
flip-+_binary64_52 frac-2neg_binary64_89 clear-num_binary64_77 associate-/l/_binary64_25 flip3-+_binary64_81
+-commutative_binary64_8 *-commutative_binary64_9 frac-times_binary64_88 associate-*l/_binary64_21 pow-prod-down_binary64_149 associate-*r/_binary64_20 sum-log_binary64_169
Counts
4 → 155
Calls

4 calls:

22.0ms
(*.f64 (/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (/.f64 (cos.f64 th) (cbrt.f64 (sqrt.f64 2))))
10.0ms
(/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))))
5.0ms
(/.f64 (cos.f64 th) (cbrt.f64 (sqrt.f64 2)))
4.0ms
(+.f64 (*.f64 a1 a1) (*.f64 a2 a2))

series419.0ms (5.1%)

Counts
4 → 12
Calls

4 calls:

158.0ms
(/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))))
121.0ms
(*.f64 (/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (/.f64 (cos.f64 th) (cbrt.f64 (sqrt.f64 2))))
118.0ms
(/.f64 (cos.f64 th) (cbrt.f64 (sqrt.f64 2)))
21.0ms
(+.f64 (*.f64 a1 a1) (*.f64 a2 a2))

simplify114.0ms (1.4%)

Algorithm
egg-herbie
Counts
167 → 167
Iterations

Useful iterations: 0 (73.0ms)

IterNodesCost
049424311
149424311

prune254.0ms (3.1%)

Pruning

7 alts after pruning (4 fresh and 3 done)

PrunedKeptTotal
New1661167
Fresh134
Picked011
Done022
Total1677174
Error
0b
Counts
174 → 7
Compiler

Compiled 4649 to 2630 computations (43.4% saved)

regimes748.0ms (9.2%)

Accuracy

Total 0.4b remaining (94.6%)

Threshold costs 0.4b (94.6%)

Compiler

Compiled 8514 to 6271 computations (26.3% saved)

bsearch0.0ms (0%)

simplify5.0ms (0.1%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
01320
11320
Compiler

Compiled 26 to 22 computations (15.4% saved)

end0.0ms (0%)

sample3.7s (45.3%)

Algorithm
intervals
Results
626.0ms1835×body1024valid
505.0ms1462×body1024invalid
420.0ms4857×body128valid
221.0ms911×body512valid
190.0ms775×body512invalid
65.0ms392×body256valid
58.0ms347×body256invalid
51.0ms579×body128invalid
3.0msbody2048valid
Compiler

Compiled 1082 to 797 computations (26.3% saved)

Profiling

Loading profile data...