Details

Time bar (total: 2.5s)

sample24.0ms

Algorithm
intervals
Results
6.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

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 40.6b

localize13.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)))

rewrite18.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:
4.0ms
(+ (* re re) (* im im))
8.0ms
(- (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series112.0ms

Counts
3 → 9
Calls
3 calls:
27.0ms
(+ (* re re) (* im im))
49.0ms
(- (sqrt (+ (* re re) (* im im))) re)
36.0ms
(sqrt (+ (* re re) (* im im)))

simplify36.0ms

Algorithm
egg-herbie
Counts
82 → 82
Iterations

Useful iterations: 2 (29.0ms)

IterNodesCost
0250664
11037430
25002381

prune189.0ms

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)

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

series56.0ms

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

simplify46.0ms

Algorithm
egg-herbie
Counts
31 → 31
Iterations

Useful iterations: 3 (43.0ms)

IterNodesCost
0119199
1333125
21490116
3500185

prune76.0ms

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

series142.0ms

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

simplify54.0ms

Algorithm
egg-herbie
Counts
13 → 13
Iterations

Useful iterations: 3 (14.0ms)

IterNodesCost
048100
113385
243982
3193178
4500178

prune56.0ms

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))

rewrite5.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:
1.0ms
(cbrt (hypot re im))
1.0ms
(cbrt (hypot re im))
1.0ms
(cbrt (hypot re im))
1.0ms
(fma (* (cbrt (hypot re im)) (cbrt (hypot re im))) (cbrt (hypot re im)) (- re))

series460.0ms

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

simplify134.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 4 (129.0ms)

IterNodesCost
084329
1188287
2663279
33464272
45001263

prune201.0ms

Pruning

12 alts after pruning (10 fresh and 2 done)

Merged error: 6.9b

regimes184.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
04238
14938
25518
35818
46418
57518
68218
78318
88318

end0.0ms

sample653.0ms

Algorithm
intervals
Results
190.0ms6029×body80valid
139.0ms707×body2560valid
77.0ms491×body1280valid
59.0ms260×body5120valid
37.0ms275×body640valid
13.0ms143×body320valid
6.0ms95×body160valid