Details

Time bar (total: 3.1s)

sample419.0ms

Algorithm
intervals
Results
47.0ms260×body80valid
40.0ms59×body1280valid
20.0ms45×body640valid
7.0ms20×body320valid
2.0ms11×body160valid

simplify39.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
03121
15320
28420
320320
487920
5500120

prune17.0ms

Filtered
1 candidates to 1 candidates (100.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 31.4b

Counts
2 → 2

localize24.0ms

Local error

Found 4 expressions with local error:

1.7b
(* (atan2 x.im x.re) y.re)
27.6b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
27.6b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
32.4b
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite30.0ms

Algorithm
rewrite-expression-head
Rules
12×add-sqr-sqrt
pow1 add-cube-cbrt *-un-lft-identity
add-exp-log sqrt-prod add-cbrt-cube
sqrt-div add-log-exp
associate-*r* associate-*l*
rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 flip-+
cos-sum pow-prod-down prod-exp *-commutative cbrt-unprod unswap-sqr
Counts
4 → 56
Calls
4 calls:
4.0ms
(* (atan2 x.im x.re) y.re)
11.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
8.0ms
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

series238.0ms

Counts
4 → 12
Calls
4 calls:
16.0ms
(* (atan2 x.im x.re) y.re)
38.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
35.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
148.0ms
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

simplify73.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 2 (14.0ms)

IterNodesCost
0189422
1491385
21112381
32385381
45001381

prune290.0ms

Filtered
68 candidates to 54 candidates (79.4%)
Pruning

5 alts after pruning (5 fresh and 0 done)

PrunedKeptTotal
New64468
Fresh011
Picked101
Done000
Total65570

Merged error: 19.0b

Counts
70 → 5

localize16.0ms

Local error

Found 4 expressions with local error:

0.0b
(exp (- (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re) (* (atan2 x.im x.re) y.im)))
0.3b
(* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re)
1.7b
(* (atan2 x.im x.re) y.im)
27.6b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

rewrite19.0ms

Algorithm
rewrite-expression-head
Rules
15×add-sqr-sqrt
11×pow1
10×add-cube-cbrt *-un-lft-identity
associate-*l*
add-exp-log add-cbrt-cube
add-log-exp
associate-*r*
exp-prod sqrt-prod log-pow
sqrt-pow1 pow1/2 sqrt-div exp-sum pow-prod-down prod-exp *-commutative cbrt-unprod rem-exp-log unswap-sqr
sub-neg rem-sqrt-square flip3-+ exp-diff diff-log flip-+
Counts
4 → 69
Calls
4 calls:
4.0ms
(exp (- (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re) (* (atan2 x.im x.re) y.im)))
5.0ms
(* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re)
3.0ms
(* (atan2 x.im x.re) y.im)
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

series238.0ms

Counts
4 → 12
Calls
4 calls:
94.0ms
(exp (- (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re) (* (atan2 x.im x.re) y.im)))
91.0ms
(* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re)
17.0ms
(* (atan2 x.im x.re) y.im)
36.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

simplify62.0ms

Algorithm
egg-herbie
Counts
81 → 81
Iterations

Useful iterations: 2 (20.0ms)

IterNodesCost
0280545
1825486
22165481
35001481

prune256.0ms

Filtered
81 candidates to 60 candidates (74.1%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New76581
Fresh134
Picked101
Done000
Total78886

Merged error: 3.6b

Counts
86 → 8

localize23.0ms

Local error

Found 4 expressions with local error:

5.9b
(cbrt (atan2 x.im x.re))
5.9b
(cbrt (atan2 x.im x.re))
5.9b
(cbrt (atan2 x.im x.re))
27.6b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

rewrite8.0ms

Algorithm
rewrite-expression-head
Rules
cbrt-prod add-sqr-sqrt
add-cube-cbrt *-un-lft-identity
pow1
add-exp-log add-cbrt-cube add-log-exp
pow1/3 sqrt-prod
sqrt-div
rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 flip-+
Counts
4 → 48
Calls
4 calls:
1.0ms
(cbrt (atan2 x.im x.re))
1.0ms
(cbrt (atan2 x.im x.re))
1.0ms
(cbrt (atan2 x.im x.re))
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

series161.0ms

Counts
4 → 12
Calls
4 calls:
44.0ms
(cbrt (atan2 x.im x.re))
40.0ms
(cbrt (atan2 x.im x.re))
43.0ms
(cbrt (atan2 x.im x.re))
35.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

simplify60.0ms

Algorithm
egg-herbie
Counts
60 → 60
Iterations

Useful iterations: 2 (9.0ms)

IterNodesCost
0108262
1262244
2624238
31701238
45001238

prune229.0ms

Filtered
60 candidates to 46 candidates (76.7%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New59160
Fresh077
Picked011
Done000
Total59968

Merged error: 3.6b

Counts
68 → 9

localize12.0ms

Local error

Found 3 expressions with local error:

0.0b
(/ (exp (neg (* (atan2 x.im x.re) y.im))) (pow (/ -1 x.re) y.re))
0.0b
(exp (neg (* (atan2 x.im x.re) y.im)))
1.7b
(* (atan2 x.im x.re) y.im)

rewrite21.0ms

Algorithm
rewrite-expression-head
Rules
87×times-frac
58×add-sqr-sqrt
56×add-cube-cbrt *-un-lft-identity
52×unpow-prod-down
17×associate-/r*
add-exp-log
add-cbrt-cube
exp-prod
pow1 div-exp div-inv add-log-exp
sqr-pow
associate-*r* associate-*l* associate-/l*
neg-sub0 exp-neg exp-diff pow-exp rem-exp-log associate-/l/
cbrt-undiv distribute-lft-neg-in pow-to-exp neg-mul-1 distribute-rgt-neg-in frac-2neg pow-prod-down neg-log prod-exp clear-num *-commutative cbrt-unprod unswap-sqr
Counts
3 → 123
Calls
3 calls:
9.0ms
(/ (exp (neg (* (atan2 x.im x.re) y.im))) (pow (/ -1 x.re) y.re))
2.0ms
(exp (neg (* (atan2 x.im x.re) y.im)))
4.0ms
(* (atan2 x.im x.re) y.im)

series132.0ms

Counts
3 → 9
Calls
3 calls:
89.0ms
(/ (exp (neg (* (atan2 x.im x.re) y.im))) (pow (/ -1 x.re) y.re))
23.0ms
(exp (neg (* (atan2 x.im x.re) y.im)))
16.0ms
(* (atan2 x.im x.re) y.im)

simplify56.0ms

Algorithm
egg-herbie
Counts
132 → 132
Iterations

Useful iterations: 2 (41.0ms)

IterNodesCost
04671459
117531412
250011410

prune375.0ms

Filtered
132 candidates to 101 candidates (76.5%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New1311132
Fresh077
Picked101
Done011
Total1329141

Merged error: 3.6b

Counts
141 → 9

regimes307.0ms

bsearch5.0ms

Profiling

Loading profile data...