Details

Time bar (total: 6.4s)

sample360.0ms

Algorithm
intervals
Results
45.0ms76×body1280valid
23.0ms257×body80valid
16.0ms42×body640valid
4.0ms15×body320valid
2.0msbody160valid

simplify42.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
03521
16317
29817
321717
489517
5500117

prune30.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: 33.7b

Counts
2 → 2

localize26.0ms

Local error

Found 4 expressions with local error:

1.4b
(* (atan2 x.im x.re) y.re)
30.0b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
30.0b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
35.0b
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite24.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
expm1-log1p-u sqrt-div log1p-expm1-u add-log-exp
associate-*r* associate-*l*
rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 flip-+ hypot-def
cos-sum pow-prod-down prod-exp *-commutative cbrt-unprod unswap-sqr
Counts
4 → 66
Calls
4 calls:
4.0ms
(* (atan2 x.im x.re) y.re)
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
9.0ms
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

series247.0ms

Counts
4 → 12
Calls
4 calls:
19.0ms
(* (atan2 x.im x.re) y.re)
34.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
35.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
158.0ms
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

simplify79.0ms

Algorithm
egg-herbie
Counts
78 → 78
Iterations

Useful iterations: 2 (15.0ms)

IterNodesCost
0205456
1546415
21264411
32748411
45001411

prune384.0ms

Filtered
78 candidates to 66 candidates (84.6%)
Pruning

4 alts after pruning (4 fresh and 0 done)

PrunedKeptTotal
New74478
Fresh101
Picked101
Done000
Total76480

Merged error: 19.2b

Counts
80 → 4

localize17.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.1b
(* (atan2 x.im x.re) y.im)
30.0b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

rewrite23.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*
expm1-log1p-u log1p-expm1-u
exp-prod exp-sum sqrt-prod log-pow
sqrt-pow1 pow1/2 sqrt-div pow-prod-down prod-exp *-commutative cbrt-unprod rem-exp-log unswap-sqr
sub-neg rem-sqrt-square flip3-+ exp-diff diff-log prod-diff flip-+ hypot-def
Counts
4 → 79
Calls
4 calls:
5.0ms
(exp (- (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re) (* (atan2 x.im x.re) y.im)))
6.0ms
(* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re)
4.0ms
(* (atan2 x.im x.re) y.im)
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

series235.0ms

Counts
4 → 12
Calls
4 calls:
95.0ms
(exp (- (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re) (* (atan2 x.im x.re) y.im)))
88.0ms
(* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re)
16.0ms
(* (atan2 x.im x.re) y.im)
35.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

simplify66.0ms

Algorithm
egg-herbie
Counts
91 → 91
Iterations

Useful iterations: 3 (59.0ms)

IterNodesCost
0308585
1921522
22504484
35002467

prune344.0ms

Filtered
91 candidates to 74 candidates (81.3%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New87491
Fresh033
Picked101
Done000
Total88795

Merged error: 4.0b

Counts
95 → 7

localize14.0ms

Local error

Found 3 expressions with local error:

0.0b
(exp (fma y.re (log (hypot x.re x.im)) (- (* (atan2 x.im x.re) y.im))))
0.1b
(fma y.re (log (hypot x.re x.im)) (- (* (atan2 x.im x.re) y.im)))
1.1b
(* (atan2 x.im x.re) y.im)

rewrite10.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
add-cube-cbrt *-un-lft-identity
pow1 add-exp-log add-cbrt-cube
add-log-exp
expm1-log1p-u exp-prod associate-*r* associate-*l* log1p-expm1-u
fma-udef
exp-sum pow-prod-down prod-exp *-commutative cbrt-unprod rem-exp-log unswap-sqr
Counts
3 → 44
Calls
3 calls:
2.0ms
(exp (fma y.re (log (hypot x.re x.im)) (- (* (atan2 x.im x.re) y.im))))
1.0ms
(fma y.re (log (hypot x.re x.im)) (- (* (atan2 x.im x.re) y.im)))
7.0ms
(* (atan2 x.im x.re) y.im)

series221.0ms

Counts
3 → 9
Calls
3 calls:
78.0ms
(exp (fma y.re (log (hypot x.re x.im)) (- (* (atan2 x.im x.re) y.im))))
126.0ms
(fma y.re (log (hypot x.re x.im)) (- (* (atan2 x.im x.re) y.im)))
17.0ms
(* (atan2 x.im x.re) y.im)

simplify113.0ms

Algorithm
egg-herbie
Counts
53 → 53
Iterations

Useful iterations: 3 (31.0ms)

IterNodesCost
0154331
1426291
21148287
33857284
45001284

prune215.0ms

Filtered
53 candidates to 42 candidates (79.2%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New49453
Fresh246
Picked101
Done000
Total52860

Merged error: 4.0b

Counts
60 → 8

localize19.0ms

Local error

Found 4 expressions with local error:

0.6b
(cbrt (fma y.re (log (hypot x.re x.im)) (- (* (atan2 x.im x.re) y.im))))
1.1b
(* (atan2 x.im x.re) y.im)
1.1b
(* (atan2 x.im x.re) y.im)
1.1b
(* (atan2 x.im x.re) y.im)

rewrite15.0ms

Algorithm
rewrite-expression-head
Rules
17×add-sqr-sqrt
11×add-cube-cbrt *-un-lft-identity
10×pow1 add-exp-log add-cbrt-cube
associate-*r* associate-*l*
expm1-log1p-u log1p-expm1-u add-log-exp
cbrt-prod pow-prod-down prod-exp *-commutative cbrt-unprod unswap-sqr
pow1/3
Counts
4 → 73
Calls
4 calls:
1.0ms
(cbrt (fma y.re (log (hypot x.re x.im)) (- (* (atan2 x.im x.re) y.im))))
4.0ms
(* (atan2 x.im x.re) y.im)
4.0ms
(* (atan2 x.im x.re) y.im)
4.0ms
(* (atan2 x.im x.re) y.im)

series304.0ms

Counts
4 → 12
Calls
4 calls:
252.0ms
(cbrt (fma y.re (log (hypot x.re x.im)) (- (* (atan2 x.im x.re) y.im))))
16.0ms
(* (atan2 x.im x.re) y.im)
20.0ms
(* (atan2 x.im x.re) y.im)
16.0ms
(* (atan2 x.im x.re) y.im)

simplify66.0ms

Algorithm
egg-herbie
Counts
85 → 85
Iterations

Useful iterations: 3 (59.0ms)

IterNodesCost
0215432
1623393
22358390
35001382

prune378.0ms

Filtered
85 candidates to 59 candidates (69.4%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New84185
Fresh167
Picked011
Done000
Total85893

Merged error: 4.0b

Counts
93 → 8

regimes203.0ms

Accuracy

0% (0.5b remaining)

Error of 3.7b against oracle of 3.2b and baseline of 3.7b

bsearch0.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02424
12824
22824

end0.0ms

sample3.0s

Algorithm
intervals
Results
1.2s2070×body1280valid
666.0ms8001×body80valid
538.0ms1407×body640valid
171.0ms641×body320valid
47.0ms274×body160valid