Details

Time bar (total: 10.4s)

analyze1.6s (15.1%)

Algorithm
search
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05006504
044
144
Search
TrueOtherFalseIter
0%99.8%0.2%0
0%99.8%0.2%1
0%99.8%0.2%2
0%99.8%0.2%3
0%99.8%0.2%4
0%99.8%0.2%5
9.4%90.4%0.2%6
17.2%82.7%0.2%7
19.5%80.3%0.2%8
30.8%69%0.2%9
35.5%64.3%0.2%10
42.4%57.4%0.2%11
47.1%52.7%0.2%12
48.9%50.8%0.3%13
50%49.7%0.4%14
Compiler

Compiled 38 to 20 computations (47.4% saved)

sample110.0ms (1.1%)

Algorithm
intervals
Results
36.0ms61×body1024invalid
27.0ms239×body128valid
9.0ms25×body512invalid
5.0msbody1024valid
3.0ms25×body128invalid
3.0ms12×body256invalid
2.0msbody512valid
2.0msbody2048invalid
1.0msbody256valid
Compiler

Compiled 75 to 43 computations (42.7% saved)

simplify63.0ms (0.6%)

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (57.0ms)

IterNodesCost
0494472
1494472

prune8.0ms (0.1%)

Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New101
Fresh011
Picked000
Done000
Total112
Error
34.9b
Counts
2 → 1
Compiler

Compiled 73 to 38 computations (47.9% saved)

localize30.0ms (0.3%)

Local error

Found 4 expressions with local error:

1.6b
(*.f64 (atan2.f64 x.im x.re) y.im)
30.5b
(sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))
30.5b
(sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))
32.7b
(cos.f64 (+.f64 (*.f64 (log.f64 (sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))) y.im) (*.f64 (atan2.f64 x.im x.re) y.re)))

rewrite104.0ms (1%)

Algorithm
rewrite-expression-head
Error
34.9b
Rules
12×add-sqr-sqrt_binary64
pow1_binary64 add-cube-cbrt_binary64 *-un-lft-identity_binary64
add-exp-log_binary64 add-cbrt-cube_binary64 sqrt-prod_binary64
add-log-exp_binary64 sqrt-div_binary64
associate-*l*_binary64 associate-*r*_binary64
pow1/2_binary64 sqrt-pow1_binary64 flip3-+_binary64 flip-+_binary64 rem-sqrt-square_binary64
cos-sum_binary64 pow-prod-down_binary64 prod-exp_binary64 cbrt-unprod_binary64 unswap-sqr_binary64 *-commutative_binary64
Counts
4 → 56
Calls

4 calls:

9.0ms
(cos.f64 (+.f64 (*.f64 (log.f64 (sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))) y.im) (*.f64 (atan2.f64 x.im x.re) y.re)))
4.0ms
(sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))
4.0ms
(sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))
4.0ms
(*.f64 (atan2.f64 x.im x.re) y.im)
Compiler

Compiled 2594 to 353 computations (86.4% saved)

series624.0ms (6%)

Error
22.3b
Counts
4 → 51
Calls

4 calls:

246.0ms
(cos.f64 (+.f64 (*.f64 (log.f64 (sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))) y.im) (*.f64 (atan2.f64 x.im x.re) y.re)))
144.0ms
(sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))
95.0ms
(sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))
73.0ms
(*.f64 (atan2.f64 x.im x.re) y.im)
Compiler

Compiled 5292 to 2678 computations (49.4% saved)

simplify72.0ms (0.7%)

Algorithm
egg-herbie
Counts
107 → 107
Iterations

Useful iterations: 0 (48.0ms)

IterNodesCost
051512028

prune154.0ms (1.5%)

Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New1007107
Fresh000
Picked101
Done000
Total1017108
Error
22.3b
Counts
108 → 7
Compiler

Compiled 4579 to 1246 computations (72.8% saved)

localize18.0ms (0.2%)

Local error

Found 4 expressions with local error:

0.7b
(*.f64 y.re (atan2.f64 x.im x.re))
1.6b
(*.f64 (atan2.f64 x.im x.re) y.im)
17.7b
(cos.f64 (*.f64 y.re (atan2.f64 x.im x.re)))
30.5b
(sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))

rewrite78.0ms (0.8%)

Algorithm
rewrite-expression-head
Error
22.3b
Rules
14×add-sqr-sqrt_binary64
pow1_binary64 add-cube-cbrt_binary64 *-un-lft-identity_binary64
add-exp-log_binary64 add-cbrt-cube_binary64
associate-*l*_binary64 associate-*r*_binary64
add-log-exp_binary64
sqrt-prod_binary64
sqrt-div_binary64 pow-prod-down_binary64 prod-exp_binary64 cbrt-unprod_binary64 unswap-sqr_binary64 *-commutative_binary64
pow1/2_binary64 sqrt-pow1_binary64 flip3-+_binary64 flip-+_binary64 rem-sqrt-square_binary64
Counts
4 → 58
Calls

4 calls:

4.0ms
(sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))
4.0ms
(*.f64 (atan2.f64 x.im x.re) y.im)
4.0ms
(*.f64 y.re (atan2.f64 x.im x.re))
1.0ms
(cos.f64 (*.f64 y.re (atan2.f64 x.im x.re)))
Compiler

Compiled 1851 to 341 computations (81.6% saved)

series436.0ms (4.2%)

Error
3.9b
Counts
4 → 45
Calls

4 calls:

134.0ms
(sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))
118.0ms
(cos.f64 (*.f64 y.re (atan2.f64 x.im x.re)))
70.0ms
(*.f64 (atan2.f64 x.im x.re) y.im)
69.0ms
(*.f64 y.re (atan2.f64 x.im x.re))
Compiler

Compiled 3270 to 1723 computations (47.3% saved)

simplify65.0ms (0.6%)

Algorithm
egg-herbie
Counts
103 → 103
Iterations

Useful iterations: 0 (45.0ms)

IterNodesCost
051451447

prune119.0ms (1.1%)

Pruning

10 alts after pruning (10 fresh and 0 done)

PrunedKeptTotal
New994103
Fresh066
Picked101
Done000
Total10010110
Error
3.9b
Counts
110 → 10
Compiler

Compiled 3227 to 847 computations (73.8% saved)

localize13.0ms (0.1%)

Local error

Found 4 expressions with local error:

0.1b
(*.f64 (log.f64 (neg.f64 x.re)) y.re)
0.7b
(*.f64 y.re (atan2.f64 x.im x.re))
1.6b
(*.f64 (atan2.f64 x.im x.re) y.im)
17.7b
(cos.f64 (*.f64 y.re (atan2.f64 x.im x.re)))

rewrite69.0ms (0.7%)

Algorithm
rewrite-expression-head
Error
3.9b
Rules
16×add-sqr-sqrt_binary64
11×pow1_binary64
10×add-exp-log_binary64 add-cbrt-cube_binary64 add-cube-cbrt_binary64 *-un-lft-identity_binary64 associate-*l*_binary64
associate-*r*_binary64
add-log-exp_binary64
pow-prod-down_binary64 prod-exp_binary64 cbrt-unprod_binary64 unswap-sqr_binary64 *-commutative_binary64
log-pow_binary64
Counts
4 → 62
Calls

4 calls:

5.0ms
(*.f64 (log.f64 (neg.f64 x.re)) y.re)
4.0ms
(*.f64 (atan2.f64 x.im x.re) y.im)
4.0ms
(*.f64 y.re (atan2.f64 x.im x.re))
2.0ms
(cos.f64 (*.f64 y.re (atan2.f64 x.im x.re)))
Compiler

Compiled 1541 to 323 computations (79% saved)

series474.0ms (4.6%)

Error
3.9b
Counts
4 → 36
Calls

4 calls:

188.0ms
(*.f64 (log.f64 (neg.f64 x.re)) y.re)
127.0ms
(cos.f64 (*.f64 y.re (atan2.f64 x.im x.re)))
68.0ms
(*.f64 y.re (atan2.f64 x.im x.re))
66.0ms
(*.f64 (atan2.f64 x.im x.re) y.im)
Compiler

Compiled 2107 to 1119 computations (46.9% saved)

simplify63.0ms (0.6%)

Algorithm
egg-herbie
Counts
98 → 98
Iterations

Useful iterations: 0 (43.0ms)

IterNodesCost
049671283
149671283

prune88.0ms (0.8%)

Pruning

10 alts after pruning (9 fresh and 1 done)

PrunedKeptTotal
New98098
Fresh099
Picked011
Done000
Total9810108
Error
3.9b
Counts
108 → 10
Compiler

Compiled 2505 to 560 computations (77.6% saved)

localize29.0ms (0.3%)

Local error

Found 4 expressions with local error:

1.6b
(*.f64 (atan2.f64 x.im x.re) y.im)
30.5b
(sqrt.f64 (+.f64 (pow.f64 x.im 2) (pow.f64 x.re 2)))
30.5b
(sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))
32.7b
(cos.f64 (+.f64 (*.f64 y.re (atan2.f64 x.im x.re)) (*.f64 y.im (log.f64 (sqrt.f64 (+.f64 (pow.f64 x.im 2) (pow.f64 x.re 2)))))))

rewrite132.0ms (1.3%)

Algorithm
rewrite-expression-head
Error
3.9b
Rules
12×add-sqr-sqrt_binary64 *-un-lft-identity_binary64
pow1_binary64 add-cube-cbrt_binary64 sqrt-prod_binary64
add-exp-log_binary64 add-cbrt-cube_binary64
add-log-exp_binary64 sqrt-div_binary64
associate-*l*_binary64 associate-*r*_binary64
pow1/2_binary64 sqrt-pow1_binary64 flip3-+_binary64 flip-+_binary64 rem-sqrt-square_binary64 unpow-prod-down_binary64 distribute-lft-out_binary64
cos-sum_binary64 pow-prod-down_binary64 prod-exp_binary64 cbrt-unprod_binary64 unswap-sqr_binary64 *-commutative_binary64
Counts
4 → 58
Calls

4 calls:

9.0ms
(sqrt.f64 (+.f64 (pow.f64 x.im 2) (pow.f64 x.re 2)))
6.0ms
(cos.f64 (+.f64 (*.f64 y.re (atan2.f64 x.im x.re)) (*.f64 y.im (log.f64 (sqrt.f64 (+.f64 (pow.f64 x.im 2) (pow.f64 x.re 2)))))))
4.0ms
(sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))
4.0ms
(*.f64 (atan2.f64 x.im x.re) y.im)
Compiler

Compiled 2850 to 1225 computations (57% saved)

series652.0ms (6.3%)

Error
3.9b
Counts
4 → 51
Calls

4 calls:

239.0ms
(cos.f64 (+.f64 (*.f64 y.re (atan2.f64 x.im x.re)) (*.f64 y.im (log.f64 (sqrt.f64 (+.f64 (pow.f64 x.im 2) (pow.f64 x.re 2)))))))
151.0ms
(sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))
98.0ms
(sqrt.f64 (+.f64 (pow.f64 x.im 2) (pow.f64 x.re 2)))
85.0ms
(*.f64 (atan2.f64 x.im x.re) y.im)
Compiler

Compiled 5697 to 3533 computations (38% saved)

simplify72.0ms (0.7%)

Algorithm
egg-herbie
Counts
109 → 109
Iterations

Useful iterations: 0 (48.0ms)

IterNodesCost
051792058

prune186.0ms (1.8%)

Pruning

10 alts after pruning (8 fresh and 2 done)

PrunedKeptTotal
New1072109
Fresh268
Picked011
Done011
Total10910119
Error
3.9b
Counts
119 → 10
Compiler

Compiled 4703 to 2064 computations (56.1% saved)

regimes647.0ms (6.2%)

Accuracy

Total 5.5b remaining (61.3%)

Threshold costs 0b (0%)

Compiler

Compiled 6732 to 4275 computations (36.5% saved)

bsearch93.0ms (0.9%)

Steps
ItersRangePoint
8
-3.816229993685747e-305
1.658577703816624e-308
-1.4701993751772e-310
Compiler

Compiled 1 to 4 computations (-300% saved)

simplify4.0ms (0%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
06581
16581

end0.0ms (0%)

sample4.4s (42.5%)

Algorithm
intervals
Results
1.3s2521×body1024invalid
840.0ms7579×body128valid
348.0ms982×body512invalid
104.0ms435×body256invalid
96.0ms188×body1024valid
65.0ms572×body128invalid
44.0ms127×body512valid
30.0ms36×body2048invalid
24.0ms90×body256valid
13.0ms16×body2048valid
Compiler

Compiled 1409 to 887 computations (37% saved)

Profiling

Loading profile data...