Details

Time bar (total: 2.5s)

sample25.0ms

Algorithm
intervals
Results
7.0ms199×body80valid
4.0ms20×body2560valid
2.0ms15×body1280valid
1.0ms10×body640valid
1.0msbody5120valid
0.0msbody320valid
0.0msbody160valid

simplify9.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0198
1288
2368
3448
4468
5468

prune3.0ms

Filtered
1 candidates to 0 candidates (0.0%)
Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 40.6b

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.6b
(- (sqrt (+ (* re re) (* im im))) re)
31.6b
(sqrt (+ (* re re) (* im im)))

rewrite29.0ms

Algorithm
rewrite-expression-head
Rules
23×add-sqr-sqrt
20×*-un-lft-identity
18×add-cube-cbrt prod-diff
16×sqrt-prod
add-log-exp
fma-neg
pow1
add-exp-log expm1-log1p-u add-cbrt-cube log1p-expm1-u
flip3-+ sqrt-div flip-+ difference-of-squares
+-commutative sub-neg rem-sqrt-square flip3-- fma-def sqrt-pow1 pow1/2 diff-log sum-log flip-- hypot-def distribute-lft-out--
Counts
3 → 73
Calls
3 calls:
3.0ms
(+ (* re re) (* im im))
21.0ms
(- (sqrt (+ (* re re) (* im im))) re)
3.0ms
(sqrt (+ (* re re) (* im im)))

series111.0ms

Counts
3 → 9
Calls
3 calls:
29.0ms
(+ (* re re) (* im im))
44.0ms
(- (sqrt (+ (* re re) (* im im))) re)
38.0ms
(sqrt (+ (* re re) (* im im)))

simplify36.0ms

Algorithm
egg-herbie
Counts
82 → 82
Iterations

Useful iterations: 2 (30.0ms)

IterNodesCost
0250664
11037430
25002381

prune183.0ms

Filtered
82 candidates to 56 candidates (68.3%)
Pruning

6 alts after pruning (6 fresh and 0 done)

Merged error: 7.0b

localize8.0ms

Local error

Found 1 expressions with local error:

0.6b
(- (hypot re im) re)

rewrite4.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:
3.0ms
(- (hypot re im) re)

series58.0ms

Counts
1 → 3
Calls
1 calls:
58.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

Filtered
31 candidates to 20 candidates (64.5%)
Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 6.9b

localize11.0ms

Local error

Found 1 expressions with local error:

14.0b
(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))

series136.0ms

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

simplify53.0ms

Algorithm
egg-herbie
Counts
13 → 13
Iterations

Useful iterations: 3 (14.0ms)

IterNodesCost
048100
113385
243982
3193178
4500178

prune55.0ms

Filtered
13 candidates to 12 candidates (92.3%)
Pruning

8 alts after pruning (6 fresh and 2 done)

Merged error: 6.9b

localize12.0ms

Local error

Found 4 expressions with local error:

0.6b
(cbrt (hypot re im))
0.6b
(cbrt (hypot re im))
0.6b
(cbrt (hypot re im))
13.7b
(fma (* (cbrt (hypot re im)) (cbrt (hypot re im))) (cbrt (hypot re im)) (- re))

rewrite3.0ms

Algorithm
rewrite-expression-head
Rules
cbrt-prod
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
pow1/3
fma-udef
Counts
4 → 49
Calls
4 calls:
0.0ms
(cbrt (hypot re im))
0.0ms
(cbrt (hypot re im))
0.0ms
(cbrt (hypot re im))
0.0ms
(fma (* (cbrt (hypot re im)) (cbrt (hypot re im))) (cbrt (hypot re im)) (- re))

series460.0ms

Counts
4 → 12
Calls
4 calls:
111.0ms
(cbrt (hypot re im))
107.0ms
(cbrt (hypot re im))
107.0ms
(cbrt (hypot re im))
135.0ms
(fma (* (cbrt (hypot re im)) (cbrt (hypot re im))) (cbrt (hypot re im)) (- re))

simplify133.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 4 (129.0ms)

IterNodesCost
084329
1188287
2663279
33464272
45001263

prune201.0ms

Filtered
61 candidates to 55 candidates (90.2%)
Pruning

12 alts after pruning (10 fresh and 2 done)

Merged error: 6.9b

regimes192.0ms

Accuracy

-6.7% (6.4b remaining)

Error of 13.7b against oracle of 7.3b and baseline of 13.3b

bsearch2.0ms

simplify4.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 2 (1.0ms)

IterNodesCost
04438
15138
25718
36018
46618
57718
68418
78518
88518

end0.0ms

sample675.0ms

Algorithm
intervals
Results
205.0ms6029×body80valid
141.0ms707×body2560valid
79.0ms491×body1280valid
63.0ms260×body5120valid
34.0ms275×body640valid
13.0ms143×body320valid
6.0ms95×body160valid