Details

Time bar (total: 3.0s)

sample25.0ms

Algorithm
intervals
Results
6.0ms196×body80valid
5.0ms27×body2560valid
2.0ms16×body1280valid
1.0msbody640valid
1.0msbody5120valid
0.0msbody320valid
0.0msbody160valid

simplify7.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0248
1308
2338
3338

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 37.6b

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.3b
(+ (sqrt (+ (* re re) (* im im))) re)
28.2b
(sqrt (+ (* re re) (* im im)))

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

series111.0ms

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

simplify65.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 3 (61.0ms)

IterNodesCost
0194279
1769246
22332233
35002230

prune165.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 8.1b

localize7.0ms

Local error

Found 2 expressions with local error:

0.0b
(hypot re im)
0.3b
(+ (hypot re im) re)

rewrite6.0ms

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

series104.0ms

Counts
2 → 6
Calls
2 calls:
45.0ms
(hypot re im)
59.0ms
(+ (hypot re im) re)

simplify73.0ms

Algorithm
egg-herbie
Counts
33 → 33
Iterations

Useful iterations: 3 (13.0ms)

IterNodesCost
08785
117679
238079
3103078
4314378
5500178

prune93.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 8.1b

localize9.0ms

Local error

Found 4 expressions with local error:

0.0b
(sqrt (hypot re im))
0.0b
(hypot re im)
0.0b
(hypot re im)
14.6b
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)

rewrite3.0ms

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

series321.0ms

Counts
4 → 12
Calls
4 calls:
85.0ms
(sqrt (hypot re im))
50.0ms
(hypot re im)
45.0ms
(hypot re im)
141.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)

simplify46.0ms

Algorithm
egg-herbie
Counts
57 → 57
Iterations

Useful iterations: 3 (42.0ms)

IterNodesCost
0128219
1344188
21419179
35002174

prune184.0ms

Pruning

6 alts after pruning (4 fresh and 2 done)

Merged error: 8.1b

localize14.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))
14.5b
(fma (sqrt (* (* (cbrt (hypot re im)) (cbrt (hypot re im))) (cbrt (hypot re im)))) (sqrt (hypot re im)) re)

rewrite4.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))
0.0ms
(fma (sqrt (* (* (cbrt (hypot re im)) (cbrt (hypot re im))) (cbrt (hypot re im)))) (sqrt (hypot re im)) re)

series477.0ms

Counts
4 → 12
Calls
4 calls:
111.0ms
(cbrt (hypot re im))
110.0ms
(cbrt (hypot re im))
112.0ms
(cbrt (hypot re im))
143.0ms
(fma (sqrt (* (* (cbrt (hypot re im)) (cbrt (hypot re im))) (cbrt (hypot re im)))) (sqrt (hypot re im)) re)

simplify137.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 4 (132.0ms)

IterNodesCost
0100381
1249336
2841330
34138294
45001282

prune217.0ms

Pruning

8 alts after pruning (6 fresh and 2 done)

Merged error: 8.1b

regimes86.0ms

Accuracy

22.2% (4.3b remaining)

Error of 12.0b against oracle of 7.6b and baseline of 13.2b

bsearch132.0ms

Steps
ItersRangePoint
9
-1.257508563021492e-70
-2.656711351641578e-76
-1.941232155667052e-71
7
-1.989428328455626e-07
-1.1960025753651706e-08
-1.0136200979503546e-07
9
-1.621829926510464e+42
-8.804681707553006e+35
-1.7761354360071877e+40

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 1 (1.0ms)

IterNodesCost
03324
13612
23912
33912

end0.0ms

sample690.0ms

Algorithm
intervals
Results
191.0ms6034×body80valid
133.0ms716×body2560valid
71.0ms463×body1280valid
66.0ms279×body5120valid
30.0ms262×body640valid
14.0ms158×body320valid
5.0ms88×body160valid