Details

Time bar (total: 3.6s)

sample27.0ms

Algorithm
intervals
Results
6.0ms177×body80valid
5.0ms26×body2560valid
3.0ms20×body1280valid
2.0msbody5120valid
1.0ms10×body640valid
1.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: 40.8b

localize16.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* re re) (* im im))
1.8b
(+ (sqrt (+ (* re re) (* im im))) re)
29.2b
(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)))

series111.0ms

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

simplify66.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 3 (62.0ms)

IterNodesCost
0194279
1769246
22332233
35002230

prune188.0ms

Pruning

6 alts after pruning (6 fresh and 0 done)

Merged error: 8.5b

localize8.0ms

Local error

Found 1 expressions with local error:

1.8b
(+ re (hypot re im))

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
(+ re (hypot re im))

series59.0ms

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

simplify71.0ms

Algorithm
egg-herbie
Counts
20 → 20
Iterations

Useful iterations: 1 (4.0ms)

IterNodesCost
07460
116254
235054
395254
4305154
5500154

prune71.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 8.5b

localize12.0ms

Local error

Found 4 expressions with local error:

0.4b
(cbrt (+ re (hypot re im)))
1.8b
(+ re (hypot re im))
1.8b
(+ re (hypot re im))
1.8b
(+ re (hypot re im))

rewrite19.0ms

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

series330.0ms

Counts
4 → 12
Calls
4 calls:
153.0ms
(cbrt (+ re (hypot re im)))
61.0ms
(+ re (hypot re im))
61.0ms
(+ re (hypot re im))
55.0ms
(+ re (hypot re im))

simplify46.0ms

Algorithm
egg-herbie
Counts
79 → 79
Iterations

Useful iterations: 3 (41.0ms)

IterNodesCost
0180308
1443283
21525280
35001277

prune303.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 8.5b

localize12.0ms

Local error

Found 4 expressions with local error:

0.5b
(cbrt re)
0.5b
(cbrt re)
0.5b
(cbrt re)
18.7b
(fma (* (cbrt re) (cbrt re)) (cbrt re) (hypot re im))

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

series899.0ms

Counts
4 → 12
Calls
4 calls:
175.0ms
(cbrt re)
171.0ms
(cbrt re)
360.0ms
(cbrt re)
193.0ms
(fma (* (cbrt re) (cbrt re)) (cbrt re) (hypot re im))

simplify69.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 3 (14.0ms)

IterNodesCost
060220
1121195
2359187
31734185
45001185

prune203.0ms

Pruning

12 alts after pruning (10 fresh and 2 done)

Merged error: 8.4b

regimes257.0ms

Accuracy

15.8% (4.9b remaining)

Error of 12.0b against oracle of 7.2b and baseline of 13.0b

bsearch157.0ms

Steps
ItersRangePoint
5
-3.604041719607414e-89
-1.3548869531543663e-89
-3.3945979597993974e-89
10
-5.991532222681368e+46
-9.78963830731076e+36
-2.8979168285597056e+45
9
-1.5013042432692243e+90
-6.317617841719785e+84
-4.336243762655158e+86

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05433
15833
25833

end0.0ms

sample669.0ms

Algorithm
intervals
Results
202.0ms6080×body80valid
143.0ms699×body2560valid
73.0ms447×body1280valid
62.0ms262×body5120valid
33.0ms266×body640valid
14.0ms154×body320valid
6.0ms92×body160valid