Details

Time bar (total: 2.6s)

sample28.0ms

Algorithm
intervals
Results
6.0ms198×body80valid
3.0ms17×body2560valid
2.0ms15×body1280valid
2.0msbody5120valid
1.0ms10×body640valid
1.0msbody320valid
0.0msbody160valid

simplify9.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0198
1288
2368
3448
4468
5468

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 43.0b

localize10.0ms

Local error

Found 2 expressions with local error:

0.8b
(- (sqrt (+ (* re re) (* im im))) re)
34.5b
(sqrt (+ (* re re) (* im im)))

rewrite59.0ms

Algorithm
rewrite-expression-head
Rules
22×add-sqr-sqrt
19×*-un-lft-identity
18×prod-diff
17×add-cube-cbrt
16×sqrt-prod
fma-neg
add-log-exp
pow1
add-exp-log expm1-log1p-u sqrt-div add-cbrt-cube log1p-expm1-u difference-of-squares
sub-neg rem-sqrt-square flip3-- sqrt-pow1 flip3-+ pow1/2 diff-log flip-- flip-+ hypot-def distribute-lft-out--
Counts
2 → 59
Calls
2 calls:
49.0ms
(- (sqrt (+ (* re re) (* im im))) re)
8.0ms
(sqrt (+ (* re re) (* im im)))

series80.0ms

Counts
2 → 6
Calls
2 calls:
46.0ms
(- (sqrt (+ (* re re) (* im im))) re)
34.0ms
(sqrt (+ (* re re) (* im im)))

simplify105.0ms

Algorithm
egg-herbie
Counts
65 → 65
Iterations

Useful iterations: 3 (99.0ms)

IterNodesCost
0211590
1687366
23279321
35001295

prune140.0ms

Pruning

5 alts after pruning (5 fresh and 0 done)

Merged error: 8.1b

localize9.0ms

Local error

Found 1 expressions with local error:

1.1b
(- (hypot re im) re)

rewrite9.0ms

Algorithm
rewrite-expression-head
Rules
10×add-sqr-sqrt *-un-lft-identity
prod-diff
add-cube-cbrt
fma-neg add-log-exp
pow1 add-exp-log expm1-log1p-u sub-neg flip3-- diff-log add-cbrt-cube flip-- log1p-expm1-u distribute-lft-out-- difference-of-squares
Counts
1 → 28
Calls
1 calls:
9.0ms
(- (hypot re im) re)

series53.0ms

Counts
1 → 3
Calls
1 calls:
53.0ms
(- (hypot re im) re)

simplify46.0ms

Algorithm
egg-herbie
Counts
31 → 31
Iterations

Useful iterations: 3 (43.0ms)

IterNodesCost
0119199
1333125
21490116
3500185

prune72.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 7.9b

localize11.0ms

Local error

Found 4 expressions with local error:

0.0b
(sqrt (- (hypot re im) re))
0.4b
(* (sqrt (- (hypot re im) re)) (sqrt (- (hypot re im) re)))
1.1b
(- (hypot re im) re)
1.1b
(- (hypot re im) re)

rewrite67.0ms

Algorithm
rewrite-expression-head
Rules
54×add-sqr-sqrt
47×*-un-lft-identity
35×sqrt-prod
27×add-cube-cbrt
20×pow1
18×prod-diff
14×sqrt-div
12×swap-sqr
flip3-- sqrt-pow1 pow1/2 flip-- distribute-lft-out--
associate-*r* associate-*l* add-log-exp
difference-of-squares
add-exp-log fma-neg add-cbrt-cube
pow-prod-up
expm1-log1p-u frac-times log1p-expm1-u unswap-sqr
pow-prod-down pow-sqr
sub-neg diff-log associate-*r/ associate-*l/
pow2 rem-sqrt-square pow-plus sqrt-unprod prod-exp rem-square-sqrt *-commutative cbrt-unprod
Counts
4 → 142
Calls
4 calls:
9.0ms
(sqrt (- (hypot re im) re))
40.0ms
(* (sqrt (- (hypot re im) re)) (sqrt (- (hypot re im) re)))
6.0ms
(- (hypot re im) re)
6.0ms
(- (hypot re im) re)

series278.0ms

Counts
4 → 12
Calls
4 calls:
115.0ms
(sqrt (- (hypot re im) re))
55.0ms
(* (sqrt (- (hypot re im) re)) (sqrt (- (hypot re im) re)))
55.0ms
(- (hypot re im) re)
52.0ms
(- (hypot re im) re)

simplify47.0ms

Algorithm
egg-herbie
Counts
154 → 154
Iterations

Useful iterations: 2 (36.0ms)

IterNodesCost
0286899
11123706
25001691

prune339.0ms

Pruning

7 alts after pruning (5 fresh and 2 done)

Merged error: 7.9b

localize12.0ms

Local error

Found 1 expressions with local error:

14.4b
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) (- re))

rewrite1.0ms

Algorithm
rewrite-expression-head
Rules
pow1 add-exp-log add-sqr-sqrt expm1-log1p-u add-cube-cbrt *-un-lft-identity add-cbrt-cube fma-udef log1p-expm1-u add-log-exp
Counts
1 → 10
Calls
1 calls:
0.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) (- re))

series132.0ms

Counts
1 → 3
Calls
1 calls:
132.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) (- re))

simplify52.0ms

Algorithm
egg-herbie
Counts
13 → 13
Iterations

Useful iterations: 3 (14.0ms)

IterNodesCost
048100
113385
243982
3193178
4500178

prune40.0ms

Pruning

8 alts after pruning (6 fresh and 2 done)

Merged error: 7.9b

regimes162.0ms

Accuracy

18.7% (4.9b remaining)

Error of 12.1b against oracle of 7.2b and baseline of 13.2b

bsearch129.0ms

Steps
ItersRangePoint
8
3.304685596646942e+248
2.4340545909919966e+252
3.360843720164908e+248
6
1.6488320848514274e+131
1.765052389435011e+132
9.353483842517877e+131
7
7732.291311132395
674633.4983844218
122037.34724714007

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 1 (1.0ms)

IterNodesCost
03526
14013
24313
34313

end0.0ms

sample694.0ms

Algorithm
intervals
Results
199.0ms6017×body80valid
128.0ms680×body2560valid
74.0ms506×body1280valid
63.0ms285×body5120valid
31.0ms266×body640valid
13.0ms150×body320valid
6.0ms96×body160valid