Details

Time bar (total: 12.4s)

analyze1.9s (15.6%)

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)

sample144.0ms (1.2%)

Algorithm
intervals
Results
51.0ms85×body1024invalid
34.0ms238×body128valid
14.0ms33×body512invalid
5.0ms15×body256invalid
5.0msbody1024valid
2.0ms16×body128invalid
2.0msbody2048invalid
2.0msbody512valid
1.0msbody256valid
1.0msbody2048valid
Compiler

Compiled 75 to 43 computations (42.7% saved)

simplify83.0ms (0.7%)

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (70.0ms)

IterNodesCost
0494472
1494472

prune14.0ms (0.1%)

Pruning

1 alts after pruning (1 fresh and 0 done)

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

Compiled 73 to 38 computations (47.9% saved)

localize41.0ms (0.3%)

Local error

Found 4 expressions with local error:

1.9b
(*.f64 (atan2.f64 x.im x.re) y.im)
32.3b
(sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))
32.3b
(sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))
33.2b
(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)))

rewrite123.0ms (1%)

Algorithm
rewrite-expression-head
Error
36.7b
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:

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

series743.0ms (6%)

Error
22.1b
Counts
4 → 51
Calls

4 calls:

296.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)))
168.0ms
(sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))
100.0ms
(sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))
82.0ms
(*.f64 (atan2.f64 x.im x.re) y.im)
Compiler

Compiled 5292 to 2678 computations (49.4% saved)

simplify90.0ms (0.7%)

Algorithm
egg-herbie
Counts
107 → 107
Iterations

Useful iterations: 0 (64.0ms)

IterNodesCost
051512028

prune183.0ms (1.5%)

Pruning

5 alts after pruning (5 fresh and 0 done)

PrunedKeptTotal
New1025107
Fresh000
Picked101
Done000
Total1035108
Error
22.1b
Counts
108 → 5
Compiler

Compiled 4452 to 1158 computations (74% saved)

localize29.0ms (0.2%)

Local error

Found 4 expressions with local error:

0.2b
(*.f64 (log.f64 (sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))) y.re)
1.9b
(*.f64 (atan2.f64 x.im x.re) y.im)
19.3b
(cos.f64 (*.f64 y.re (atan2.f64 x.im x.re)))
32.3b
(sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))

rewrite93.0ms (0.7%)

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

4 calls:

5.0ms
(*.f64 (log.f64 (sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))) y.re)
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)
1.0ms
(cos.f64 (*.f64 y.re (atan2.f64 x.im x.re)))
Compiler

Compiled 1998 to 384 computations (80.8% saved)

series899.0ms (7.2%)

Error
4.4b
Counts
4 → 54
Calls

4 calls:

399.0ms
(*.f64 (log.f64 (sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))) y.re)
172.0ms
(cos.f64 (*.f64 y.re (atan2.f64 x.im x.re)))
165.0ms
(sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))
95.0ms
(*.f64 (atan2.f64 x.im x.re) y.im)
Compiler

Compiled 3976 to 2290 computations (42.4% saved)

simplify80.0ms (0.6%)

Algorithm
egg-herbie
Counts
115 → 115
Iterations

Useful iterations: 0 (42.0ms)

IterNodesCost
050392019

prune166.0ms (1.3%)

Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New1114115
Fresh044
Picked101
Done000
Total1128120
Error
4.4b
Counts
120 → 8
Compiler

Compiled 3485 to 1166 computations (66.5% saved)

localize16.0ms (0.1%)

Local error

Found 4 expressions with local error:

0.1b
(*.f64 (log.f64 (neg.f64 x.im)) y.re)
0.2b
(*.f64 y.re (atan2.f64 x.im x.re))
1.9b
(*.f64 (atan2.f64 x.im x.re) y.im)
19.3b
(cos.f64 (*.f64 y.re (atan2.f64 x.im x.re)))

rewrite100.0ms (0.8%)

Algorithm
rewrite-expression-head
Error
4.4b
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:

8.0ms
(*.f64 (log.f64 (neg.f64 x.im)) y.re)
7.0ms
(*.f64 (atan2.f64 x.im x.re) y.im)
7.0ms
(*.f64 y.re (atan2.f64 x.im x.re))
3.0ms
(cos.f64 (*.f64 y.re (atan2.f64 x.im x.re)))
Compiler

Compiled 1541 to 323 computations (79% saved)

series564.0ms (4.5%)

Error
4.4b
Counts
4 → 34
Calls

4 calls:

223.0ms
(*.f64 (log.f64 (neg.f64 x.im)) y.re)
146.0ms
(cos.f64 (*.f64 y.re (atan2.f64 x.im x.re)))
79.0ms
(*.f64 y.re (atan2.f64 x.im x.re))
76.0ms
(*.f64 (atan2.f64 x.im x.re) y.im)
Compiler

Compiled 1969 to 1034 computations (47.5% saved)

simplify90.0ms (0.7%)

Algorithm
egg-herbie
Counts
96 → 96
Iterations

Useful iterations: 0 (73.0ms)

IterNodesCost
048831176
148831176

prune104.0ms (0.8%)

Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New95196
Fresh077
Picked101
Done000
Total968104
Error
4.4b
Counts
104 → 8
Compiler

Compiled 2320 to 440 computations (81% saved)

localize18.0ms (0.1%)

Local error

Found 4 expressions with local error:

4.1b
(cbrt.f64 (atan2.f64 x.im x.re))
4.1b
(cbrt.f64 (atan2.f64 x.im x.re))
4.1b
(cbrt.f64 (atan2.f64 x.im x.re))
19.3b
(cos.f64 (*.f64 y.re (atan2.f64 x.im x.re)))

rewrite77.0ms (0.6%)

Algorithm
rewrite-expression-head
Error
4.4b
Rules
cbrt-prod_binary64
add-cube-cbrt_binary64 add-sqr-sqrt_binary64 *-un-lft-identity_binary64
pow1_binary64 add-log-exp_binary64 add-exp-log_binary64 add-cbrt-cube_binary64
pow1/3_binary64
Counts
4 → 40
Calls

4 calls:

2.0ms
(cos.f64 (*.f64 y.re (atan2.f64 x.im x.re)))
2.0ms
(cbrt.f64 (atan2.f64 x.im x.re))
2.0ms
(cbrt.f64 (atan2.f64 x.im x.re))
2.0ms
(cbrt.f64 (atan2.f64 x.im x.re))
Compiler

Compiled 1435 to 247 computations (82.8% saved)

series767.0ms (6.2%)

Error
4.4b
Counts
4 → 28
Calls

4 calls:

216.0ms
(cbrt.f64 (atan2.f64 x.im x.re))
201.0ms
(cbrt.f64 (atan2.f64 x.im x.re))
176.0ms
(cbrt.f64 (atan2.f64 x.im x.re))
142.0ms
(cos.f64 (*.f64 y.re (atan2.f64 x.im x.re)))
Compiler

Compiled 2567 to 1183 computations (53.9% saved)

simplify89.0ms (0.7%)

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 0 (68.0ms)

IterNodesCost
04910768
14910768

prune73.0ms (0.6%)

Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New67168
Fresh077
Picked101
Done000
Total68876
Error
4.4b
Counts
76 → 8
Compiler

Compiled 2220 to 253 computations (88.6% saved)

regimes830.0ms (6.7%)

Accuracy

Total 6.1b remaining (64.3%)

Threshold costs 0b (0%)

Compiler

Compiled 5157 to 2910 computations (43.6% saved)

bsearch252.0ms (2%)

Steps
ItersRangePoint
10
-2.0900747234974714e-303
2.790433275347491e-300
4.3354624121682e-310
8
-2.2018441581627254e-65
-9.670250962732699e-70
-1.0023614876036504e-65
6
-2493285051684366.5
-319741171256093.3
-326275111805596.6
Compiler

Compiled 1 to 4 computations (-300% saved)

simplify7.0ms (0.1%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (3.0ms)

IterNodesCost
0184239
1184239

end0.0ms (0%)

sample4.8s (38.8%)

Algorithm
intervals
Results
1.4s2387×body1024invalid
996.0ms7580×body128valid
400.0ms979×body512invalid
119.0ms415×body256invalid
115.0ms189×body1024valid
75.0ms556×body128invalid
58.0ms138×body512valid
31.0ms34×body2048invalid
21.0ms81×body256valid
11.0ms12×body2048valid
Compiler

Compiled 1174 to 640 computations (45.5% saved)

Profiling

Loading profile data...