Details

Time bar (total: 3.4s)

sample28.0ms

Algorithm
intervals
Results
6.0ms181×body80valid
5.0ms26×body2560valid
3.0ms17×body1280valid
2.0ms17×body640valid
2.0msbody5120valid
0.0msbody320valid
0.0msbody160valid

simplify8.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: 39.4b

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
0.9b
(+ (sqrt (+ (* re re) (* im im))) re)
29.6b
(sqrt (+ (* re re) (* im im)))

rewrite35.0ms

Algorithm
rewrite-expression-head
Rules
*-un-lft-identity
pow1 add-sqr-sqrt sqrt-prod
add-cube-cbrt fma-def
add-log-exp
sqrt-div
add-exp-log expm1-log1p-u sqrt-pow1 flip3-+ add-cbrt-cube flip-+ log1p-expm1-u
pow1/2 associate-*r/
+-commutative rem-sqrt-square pow-prod-down sum-log hypot-def distribute-lft-out
Counts
3 → 53
Calls
3 calls:
14.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
16.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series260.0ms

Counts
3 → 9
Calls
3 calls:
176.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
48.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify77.0ms

Algorithm
egg-herbie
Counts
62 → 62
Iterations

Useful iterations: 3 (72.0ms)

IterNodesCost
0264372
1830337
22660322
35002320

prune192.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 8.9b

localize9.0ms

Local error

Found 2 expressions with local error:

0.0b
(sqrt (* 2.0 (+ (* 1 (hypot re im)) re)))
0.9b
(+ (* 1 (hypot re im)) re)

rewrite8.0ms

Algorithm
rewrite-expression-head
Rules
pow1
add-log-exp
*-un-lft-identity
add-exp-log add-sqr-sqrt expm1-log1p-u add-cube-cbrt sqrt-pow1 flip3-+ sqrt-div associate-*r/ add-cbrt-cube flip-+ log1p-expm1-u
+-commutative fma-def pow1/2 pow-prod-down sum-log sqrt-prod distribute-lft-out
Counts
2 → 30
Calls
2 calls:
5.0ms
(sqrt (* 2.0 (+ (* 1 (hypot re im)) re)))
3.0ms
(+ (* 1 (hypot re im)) re)

series245.0ms

Counts
2 → 6
Calls
2 calls:
187.0ms
(sqrt (* 2.0 (+ (* 1 (hypot re im)) re)))
58.0ms
(+ (* 1 (hypot re im)) re)

simplify75.0ms

Algorithm
egg-herbie
Counts
36 → 36
Iterations

Useful iterations: 3 (71.0ms)

IterNodesCost
0203208
1623184
22642176
35001175

prune116.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 8.9b

localize13.0ms

Local error

Found 4 expressions with local error:

0.4b
(cbrt (+ (* 1 (hypot re im)) re))
0.9b
(+ (* 1 (hypot re im)) re)
0.9b
(+ (* 1 (hypot re im)) re)
0.9b
(+ (* 1 (hypot re im)) re)

rewrite12.0ms

Algorithm
rewrite-expression-head
Rules
10×add-log-exp
*-un-lft-identity
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 fma-def sum-log
cbrt-div
pow1/3
Counts
4 → 61
Calls
4 calls:
3.0ms
(cbrt (+ (* 1 (hypot re im)) re))
3.0ms
(+ (* 1 (hypot re im)) re)
3.0ms
(+ (* 1 (hypot re im)) re)
3.0ms
(+ (* 1 (hypot re im)) re)

series320.0ms

Counts
4 → 12
Calls
4 calls:
150.0ms
(cbrt (+ (* 1 (hypot re im)) re))
54.0ms
(+ (* 1 (hypot re im)) re)
58.0ms
(+ (* 1 (hypot re im)) re)
58.0ms
(+ (* 1 (hypot re im)) re)

simplify68.0ms

Algorithm
egg-herbie
Counts
73 → 73
Iterations

Useful iterations: 3 (63.0ms)

IterNodesCost
0201380
1558326
22452317
35001309

prune298.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 8.9b

localize17.0ms

Local error

Found 4 expressions with local error:

0.9b
(+ (* 1 (hypot re im)) re)
0.9b
(+ (* 1 (hypot re im)) re)
0.9b
(+ (* 1 (hypot re im)) re)
2.4b
(expm1 (log1p (cbrt (+ (* 1 (hypot re im)) re))))

rewrite10.0ms

Algorithm
rewrite-expression-head
Rules
10×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 fma-def flip3-+ sum-log flip-+ distribute-lft-out
expm1-log1p expm1-udef
Counts
4 → 56
Calls
4 calls:
3.0ms
(+ (* 1 (hypot re im)) re)
3.0ms
(+ (* 1 (hypot re im)) re)
3.0ms
(+ (* 1 (hypot re im)) re)
0.0ms
(expm1 (log1p (cbrt (+ (* 1 (hypot re im)) re))))

series363.0ms

Counts
4 → 12
Calls
4 calls:
54.0ms
(+ (* 1 (hypot re im)) re)
60.0ms
(+ (* 1 (hypot re im)) re)
60.0ms
(+ (* 1 (hypot re im)) re)
188.0ms
(expm1 (log1p (cbrt (+ (* 1 (hypot re im)) re))))

simplify69.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 3 (64.0ms)

IterNodesCost
0197346
1551297
22445287
35001281

prune312.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 8.9b

regimes133.0ms

Accuracy

3.3% (5.5b remaining)

Error of 13.4b against oracle of 7.9b and baseline of 13.6b

bsearch1.0ms

simplify4.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 2 (1.0ms)

IterNodesCost
04036
14536
25117
35417
46017
57117
67817
77917
87917

end0.0ms

sample695.0ms

Algorithm
intervals
Results
207.0ms6015×body80valid
139.0ms695×body2560valid
83.0ms500×body1280valid
72.0ms285×body5120valid
40.0ms292×body640valid
13.0ms137×body320valid
5.0ms76×body160valid