Details

Time bar (total: 3.1s)

sample41.0ms

Algorithm
intervals
Results
15.0ms197×body80valid
7.0ms21×body2560valid
5.0ms18×body1280valid
2.0msbody5120valid
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

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 37.0b

localize14.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.7b
(+ (sqrt (+ (* re re) (* im im))) re)
27.5b
(sqrt (+ (* re re) (* im im)))

rewrite23.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:
3.0ms
(+ (* re re) (* im im))
16.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series112.0ms

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

simplify70.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 3 (66.0ms)

IterNodesCost
0194279
1769246
22332233
35002230

prune186.0ms

Pruning

5 alts after pruning (5 fresh and 0 done)

Merged error: 6.2b

localize8.0ms

Local error

Found 1 expressions with local error:

0.7b
(+ (hypot re im) re)

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

series60.0ms

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

simplify76.0ms

Algorithm
egg-herbie
Counts
20 → 20
Iterations

Useful iterations: 3 (14.0ms)

IterNodesCost
07461
116255
235055
395254
4305154
5500154

prune65.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 6.2b

localize9.0ms

Local error

Found 1 expressions with local error:

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

series140.0ms

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

simplify47.0ms

Algorithm
egg-herbie
Counts
13 → 13
Iterations

Useful iterations: 3 (13.0ms)

IterNodesCost
04588
111873
238769
3153066
4500166

prune51.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 6.2b

localize10.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.2b
(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))
1.0ms
(cbrt (hypot re im))
1.0ms
(cbrt (hypot re im))
0.0ms
(fma (* (cbrt (hypot re im)) (cbrt (hypot re im))) (cbrt (hypot re im)) re)

series458.0ms

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

simplify129.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 4 (124.0ms)

IterNodesCost
079316
1179276
2648268
33295254
45002251

prune193.0ms

Pruning

9 alts after pruning (8 fresh and 1 done)

Merged error: 6.2b

regimes108.0ms

Accuracy

30% (4.2b remaining)

Error of 11.2b against oracle of 7.0b and baseline of 13.0b

bsearch59.0ms

Steps
ItersRangePoint
8
-0.0019174381104543623
-3.774608270569166e-06
-8.274027779590291e-06

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02412
12412

end0.0ms

sample1.2s

Algorithm
intervals
Results
479.0ms6066×body80valid
223.0ms629×body2560valid
153.0ms503×body1280valid
125.0ms297×body5120valid
67.0ms270×body640valid
29.0ms163×body320valid
9.0ms72×body160valid