Details

Time bar (total: 6.8s)

sample368.0ms

Algorithm
intervals
Results
42.0ms60×body1280valid
29.0ms255×body80valid
17.0ms36×body640valid
6.0ms19×body320valid
2.0msbody160valid

simplify41.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
03521
16317
29817
321717
489517
5500117

prune16.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

localize25.0ms

Local error

Found 4 expressions with local error:

1.4b
(* (atan2 x.im x.re) y.im)
29.7b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
29.7b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
32.2b
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite22.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:
3.0ms
(* (atan2 x.im x.re) y.im)
4.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)))

series242.0ms

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

simplify81.0ms

Algorithm
egg-herbie
Counts
78 → 78
Iterations

Useful iterations: 2 (15.0ms)

IterNodesCost
0207456
1556415
21286411
32863411
45002411

prune345.0ms

Filtered
78 candidates to 66 candidates (84.6%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New72678
Fresh101
Picked101
Done000
Total74680

Merged error: 20.0b

Counts
80 → 6

localize20.0ms

Local error

Found 4 expressions with local error:

0.0b
(- (* (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.4b
(* (atan2 x.im x.re) y.im)
29.7b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

rewrite18.0ms

Algorithm
rewrite-expression-head
Rules
14×add-sqr-sqrt
11×pow1
add-cube-cbrt *-un-lft-identity associate-*l*
add-exp-log add-cbrt-cube
associate-*r* add-log-exp
expm1-log1p-u log1p-expm1-u
sqrt-prod log-pow
sqrt-pow1 pow1/2 sqrt-div pow-prod-down prod-exp *-commutative cbrt-unprod unswap-sqr
sub-neg rem-sqrt-square flip3-- flip3-+ fma-neg diff-log prod-diff flip-- flip-+ hypot-def
Counts
4 → 77
Calls
4 calls:
4.0ms
(- (* (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)
4.0ms
(* (atan2 x.im x.re) y.im)
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

series263.0ms

Counts
4 → 12
Calls
4 calls:
124.0ms
(- (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re) (* (atan2 x.im x.re) y.im))
89.0ms
(* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re)
16.0ms
(* (atan2 x.im x.re) y.im)
34.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

simplify84.0ms

Algorithm
egg-herbie
Counts
89 → 89
Iterations

Useful iterations: 3 (76.0ms)

IterNodesCost
0320595
11020544
23156516
35001484

prune281.0ms

Filtered
89 candidates to 70 candidates (78.7%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New87289
Fresh145
Picked101
Done000
Total89695

Merged error: 4.1b

Counts
95 → 6

localize13.0ms

Local error

Found 4 expressions with local error:

0.0b
(exp (- (* (log (hypot x.re x.im)) y.re) (* (atan2 x.im x.re) y.im)))
0.0b
(- (* (log (hypot x.re x.im)) y.re) (* (atan2 x.im x.re) y.im))
0.3b
(* (log (hypot x.re x.im)) y.re)
1.4b
(* (atan2 x.im x.re) y.im)

rewrite18.0ms

Algorithm
rewrite-expression-head
Rules
13×add-sqr-sqrt
pow1 add-cube-cbrt *-un-lft-identity add-log-exp
add-exp-log add-cbrt-cube
associate-*l*
associate-*r*
expm1-log1p-u log1p-expm1-u
exp-prod exp-sum
sub-neg diff-log prod-diff pow-prod-down prod-exp *-commutative cbrt-unprod rem-exp-log unswap-sqr
flip3-- exp-diff fma-neg log-pow flip--
Counts
4 → 75
Calls
4 calls:
5.0ms
(exp (- (* (log (hypot x.re x.im)) y.re) (* (atan2 x.im x.re) y.im)))
4.0ms
(- (* (log (hypot x.re x.im)) y.re) (* (atan2 x.im x.re) y.im))
4.0ms
(* (log (hypot x.re x.im)) y.re)
4.0ms
(* (atan2 x.im x.re) y.im)

series346.0ms

Counts
4 → 12
Calls
4 calls:
101.0ms
(exp (- (* (log (hypot x.re x.im)) y.re) (* (atan2 x.im x.re) y.im)))
128.0ms
(- (* (log (hypot x.re x.im)) y.re) (* (atan2 x.im x.re) y.im))
97.0ms
(* (log (hypot x.re x.im)) y.re)
19.0ms
(* (atan2 x.im x.re) y.im)

simplify80.0ms

Algorithm
egg-herbie
Counts
87 → 87
Iterations

Useful iterations: 3 (73.0ms)

IterNodesCost
0265517
1869474
22937463
35001458

prune246.0ms

Filtered
87 candidates to 66 candidates (75.9%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New85287
Fresh055
Picked011
Done000
Total85893

Merged error: 4.1b

Counts
93 → 8

localize19.0ms

Local error

Found 4 expressions with local error:

0.3b
(* (log (hypot x.re x.im)) y.re)
1.4b
(* (atan2 x.im x.re) y.im)
1.4b
(* (atan2 x.im x.re) y.im)
1.4b
(* (atan2 x.im x.re) y.im)

rewrite21.0ms

Algorithm
rewrite-expression-head
Rules
20×add-sqr-sqrt
13×pow1 associate-*l*
12×add-exp-log add-cube-cbrt *-un-lft-identity associate-*r* add-cbrt-cube
expm1-log1p-u pow-prod-down prod-exp *-commutative cbrt-unprod log1p-expm1-u add-log-exp unswap-sqr
log-pow
Counts
4 → 81
Calls
4 calls:
4.0ms
(* (log (hypot x.re x.im)) y.re)
4.0ms
(* (atan2 x.im x.re) y.im)
7.0ms
(* (atan2 x.im x.re) y.im)
4.0ms
(* (atan2 x.im x.re) y.im)

series154.0ms

Counts
4 → 12
Calls
4 calls:
98.0ms
(* (log (hypot x.re x.im)) y.re)
22.0ms
(* (atan2 x.im x.re) y.im)
18.0ms
(* (atan2 x.im x.re) y.im)
16.0ms
(* (atan2 x.im x.re) y.im)

simplify61.0ms

Algorithm
egg-herbie
Counts
93 → 93
Iterations

Useful iterations: 2 (13.0ms)

IterNodesCost
0150350
1493306
21139304
32178304
45001304

prune301.0ms

Filtered
93 candidates to 63 candidates (67.7%)
Pruning

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New93093
Fresh066
Picked011
Done011
Total938101

Merged error: 4.1b

Counts
101 → 8

regimes189.0ms

Accuracy

0% (0.5b remaining)

Error of 4.0b against oracle of 3.5b and baseline of 4.0b

bsearch0.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0187
1207
2207

end0.0ms

sample3.6s

Algorithm
intervals
Results
1.3s1969×body1280valid
839.0ms7977×body80valid
698.0ms1472×body640valid
223.0ms650×body320valid
64.0ms294×body160valid