Details

Time bar (total: 2.8s)

sample26.0ms

Algorithm
intervals
Results
6.0ms189×body80valid
3.0ms19×body2560valid
3.0ms14×body5120valid
2.0ms15×body1280valid
1.0msbody640valid
1.0msbody320valid
0.0msbody160valid

simplify7.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
0248
1308
2338
3338

prune3.0ms

Filtered
1 candidates to 0 candidates (0.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 37.2b

Counts
2 → 1

localize14.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.5b
(+ (sqrt (+ (* re re) (* im im))) re)
27.7b
(sqrt (+ (* re re) (* im im)))

rewrite16.0ms

Algorithm
rewrite-expression-head
Rules
*-un-lft-identity
add-sqr-sqrt fma-def add-log-exp
add-cube-cbrt sqrt-prod
pow1
add-exp-log expm1-log1p-u flip3-+ add-cbrt-cube flip-+ log1p-expm1-u
+-commutative sqrt-div sum-log
rem-sqrt-square sqrt-pow1 pow1/2 hypot-def distribute-lft-out
Counts
3 → 52
Calls
3 calls:
4.0ms
(+ (* re re) (* im im))
7.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series109.0ms

Counts
3 → 9
Calls
3 calls:
26.0ms
(+ (* re re) (* im im))
49.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
34.0ms
(sqrt (+ (* re re) (* im im)))

simplify66.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 3 (61.0ms)

IterNodesCost
0194279
1769246
22332233
35002230

prune172.0ms

Filtered
61 candidates to 53 candidates (86.9%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New54761
Fresh000
Picked101
Done000
Total55762

Merged error: 7.5b

Counts
62 → 7

localize7.0ms

Local error

Found 1 expressions with local error:

0.5b
(+ (hypot re im) re)

rewrite4.0ms

Algorithm
rewrite-expression-head
Rules
*-un-lft-identity
fma-def add-log-exp
add-sqr-sqrt add-cube-cbrt
pow1 add-exp-log +-commutative expm1-log1p-u flip3-+ sum-log add-cbrt-cube flip-+ log1p-expm1-u distribute-lft-out
Counts
1 → 17
Calls
1 calls:
3.0ms
(+ (hypot re im) re)

series84.0ms

Counts
1 → 3
Calls
1 calls:
84.0ms
(+ (hypot re im) re)

simplify82.0ms

Algorithm
egg-herbie
Counts
20 → 20
Iterations

Useful iterations: 3 (17.0ms)

IterNodesCost
07461
116255
235055
395254
4305154
5500154

prune56.0ms

Filtered
20 candidates to 18 candidates (90.0%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New18220
Fresh246
Picked011
Done000
Total20727

Merged error: 7.4b

Counts
27 → 7

localize13.0ms

Local error

Found 1 expressions with local error:

16.3b
(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:
1.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)

series135.0ms

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

simplify44.0ms

Algorithm
egg-herbie
Counts
13 → 13
Iterations

Useful iterations: 3 (13.0ms)

IterNodesCost
04588
111873
238769
3153066
4500166

prune54.0ms

Filtered
13 candidates to 11 candidates (84.6%)
Pruning

9 alts after pruning (7 fresh and 2 done)

PrunedKeptTotal
New11213
Fresh055
Picked011
Done011
Total11920

Merged error: 7.4b

Counts
20 → 9

localize12.0ms

Local error

Found 4 expressions with local error:

0.5b
(cbrt (fma (sqrt (hypot re im)) (sqrt (hypot re im)) re))
16.3b
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)
16.3b
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)
16.3b
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)

rewrite4.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt add-cube-cbrt *-un-lft-identity
pow1 add-exp-log expm1-log1p-u add-cbrt-cube log1p-expm1-u add-log-exp
cbrt-prod fma-udef
pow1/3
Counts
4 → 43
Calls
4 calls:
1.0ms
(cbrt (fma (sqrt (hypot re im)) (sqrt (hypot re im)) re))
1.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)
1.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)
1.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)

series628.0ms

Counts
4 → 12
Calls
4 calls:
198.0ms
(cbrt (fma (sqrt (hypot re im)) (sqrt (hypot re im)) re))
145.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)
140.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)
144.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)

simplify46.0ms

Algorithm
egg-herbie
Counts
55 → 55
Iterations

Useful iterations: 3 (40.0ms)

IterNodesCost
0173442
1453382
21495365
35001343

prune209.0ms

Filtered
55 candidates to 52 candidates (94.5%)
Pruning

10 alts after pruning (7 fresh and 3 done)

PrunedKeptTotal
New54155
Fresh066
Picked011
Done022
Total541064

Merged error: 7.4b

Counts
64 → 10

regimes184.0ms

Accuracy

28.8% (4.3b remaining)

Error of 11.7b against oracle of 7.4b and baseline of 13.4b

bsearch151.0ms

Steps
ItersRangePoint
8
-2.9574509151749e-25
-2.754411649284367e-29
-2.903575120643544e-25
7
-2.936676120684958e+34
-5.483479790892862e+32
-3.390257965100829e+33
10
-2.65204728689218e+170
-7.85932808106197e+156
-1.6153049614391933e+157

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 1 (1.0ms)

IterNodesCost
03324
13612
23912
33912

end0.0ms

sample668.0ms

Algorithm
intervals
Results
199.0ms6028×body80valid
129.0ms692×body2560valid
81.0ms497×body1280valid
60.0ms264×body5120valid
38.0ms286×body640valid
14.0ms160×body320valid
4.0ms73×body160valid