Details

Time bar (total: 3.1s)

sample40.0ms

Algorithm
intervals
Results
10.0ms196×body80valid
8.0ms27×body2560valid
4.0ms16×body1280valid
2.0msbody5120valid
1.0msbody640valid
0.0msbody320valid
0.0msbody160valid

simplify7.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0248
1308
2338
3338

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 37.6b

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

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

series103.0ms

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

simplify68.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 3 (63.0ms)

IterNodesCost
0194279
1769246
22332233
35002230

prune172.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 8.1b

localize8.0ms

Local error

Found 2 expressions with local error:

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

rewrite9.0ms

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

series93.0ms

Counts
2 → 6
Calls
2 calls:
40.0ms
(hypot re im)
52.0ms
(+ (* 1 (hypot re im)) re)

simplify66.0ms

Algorithm
egg-herbie
Counts
31 → 31
Iterations

Useful iterations: 3 (23.0ms)

IterNodesCost
0112101
126191
275989
3238586
4500286

prune97.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 8.1b

localize11.0ms

Local error

Found 4 expressions with local error:

0.0b
(hypot re im)
0.0b
(hypot re im)
0.5b
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
8.1b
(+ (* 1 (* (sqrt (hypot re im)) (sqrt (hypot re im)))) re)

rewrite47.0ms

Algorithm
rewrite-expression-head
Rules
24×add-sqr-sqrt
19×pow1
18×sqrt-prod
13×*-un-lft-identity
12×add-cube-cbrt
sqrt-pow1 pow1/2 swap-sqr
add-exp-log associate-*r* associate-*l* add-cbrt-cube add-log-exp
pow-prod-up
expm1-log1p-u log1p-expm1-u unswap-sqr
pow-prod-down pow-sqr
hypot-udef
+-commutative pow2 fma-def flip3-+ pow-plus sqrt-unprod prod-exp sum-log rem-square-sqrt *-commutative cbrt-unprod flip-+ distribute-lft-out
Counts
4 → 86
Calls
4 calls:
0.0ms
(hypot re im)
0.0ms
(hypot re im)
15.0ms
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
28.0ms
(+ (* 1 (* (sqrt (hypot re im)) (sqrt (hypot re im)))) re)

series177.0ms

Counts
4 → 12
Calls
4 calls:
43.0ms
(hypot re im)
40.0ms
(hypot re im)
44.0ms
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
50.0ms
(+ (* 1 (* (sqrt (hypot re im)) (sqrt (hypot re im)))) re)

simplify37.0ms

Algorithm
egg-herbie
Counts
98 → 98
Iterations

Useful iterations: 2 (31.0ms)

IterNodesCost
0189351
1741285
25001277

prune234.0ms

Pruning

7 alts after pruning (5 fresh and 2 done)

Merged error: 8.1b

localize16.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))
10.1b
(+ (* 1 (* (sqrt (* (* (cbrt (hypot re im)) (cbrt (hypot re im))) (cbrt (hypot re im)))) (sqrt (hypot re im)))) re)

rewrite264.0ms

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

series361.0ms

Counts
4 → 12
Calls
4 calls:
107.0ms
(cbrt (hypot re im))
102.0ms
(cbrt (hypot re im))
101.0ms
(cbrt (hypot re im))
50.0ms
(+ (* 1 (* (sqrt (* (* (cbrt (hypot re im)) (cbrt (hypot re im))) (cbrt (hypot re im)))) (sqrt (hypot re im)))) re)

simplify67.0ms

Algorithm
egg-herbie
Counts
66 → 66
Iterations

Useful iterations: 3 (62.0ms)

IterNodesCost
0157505
1535444
22710418
35001313

prune254.0ms

Pruning

7 alts after pruning (5 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

bsearch146.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
03826
14313
24613
34613

end0.0ms

sample691.0ms

Algorithm
intervals
Results
190.0ms6034×body80valid
133.0ms716×body2560valid
68.0ms463×body1280valid
67.0ms279×body5120valid
33.0ms262×body640valid
14.0ms158×body320valid
5.0ms88×body160valid