Details

Time bar (total: 3.4s)

sample28.0ms

Algorithm
intervals
Results
6.0ms182×body80valid
5.0ms25×body2560valid
3.0ms22×body1280valid
3.0ms12×body5120valid
1.0msbody640valid
0.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: 38.5b

localize13.0ms

Local error

Found 4 expressions with local error:

0.0b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
0.0b
(+ (* re re) (* im im))
0.8b
(+ (sqrt (+ (* re re) (* im im))) re)
26.7b
(sqrt (+ (* re re) (* im im)))

rewrite74.0ms

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

series255.0ms

Counts
4 → 12
Calls
4 calls:
157.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
24.0ms
(+ (* re re) (* im im))
42.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
32.0ms
(sqrt (+ (* re re) (* im im)))

simplify92.0ms

Algorithm
egg-herbie
Counts
79 → 79
Iterations

Useful iterations: 3 (86.0ms)

IterNodesCost
0296446
11086401
23561382
35001381

prune214.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 6.2b

localize7.0ms

Local error

Found 2 expressions with local error:

0.0b
(sqrt (* 2.0 (+ (hypot re im) re)))
0.8b
(+ (hypot re im) re)

rewrite14.0ms

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

series220.0ms

Counts
2 → 6
Calls
2 calls:
168.0ms
(sqrt (* 2.0 (+ (hypot re im) re)))
52.0ms
(+ (hypot re im) re)

simplify52.0ms

Algorithm
egg-herbie
Counts
38 → 38
Iterations

Useful iterations: 3 (49.0ms)

IterNodesCost
0183173
1519156
21741150
35001148

prune101.0ms

Pruning

5 alts after pruning (4 fresh and 1 done)

Merged error: 6.2b

localize9.0ms

Local error

Found 2 expressions with local error:

0.0b
(sqrt (* 2.0 (fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)))
18.0b
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)

rewrite6.0ms

Algorithm
rewrite-expression-head
Rules
pow1
add-exp-log add-sqr-sqrt expm1-log1p-u add-cube-cbrt *-un-lft-identity sqrt-pow1 add-cbrt-cube log1p-expm1-u add-log-exp
pow1/2 pow-prod-down sqrt-prod fma-udef
Counts
2 → 23
Calls
2 calls:
5.0ms
(sqrt (* 2.0 (fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)))
0.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)

series331.0ms

Counts
2 → 6
Calls
2 calls:
209.0ms
(sqrt (* 2.0 (fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)))
122.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)

simplify46.0ms

Algorithm
egg-herbie
Counts
29 → 29
Iterations

Useful iterations: 3 (42.0ms)

IterNodesCost
0129225
1378193
21445178
35002174

prune86.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 6.2b

localize13.0ms

Local error

Found 4 expressions with local error:

0.5b
(cbrt (sqrt (* 2.0 (fma (sqrt (hypot re im)) (sqrt (hypot re im)) re))))
18.0b
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)
18.0b
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)
18.0b
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)

rewrite8.0ms

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

series657.0ms

Counts
4 → 12
Calls
4 calls:
291.0ms
(cbrt (sqrt (* 2.0 (fma (sqrt (hypot re im)) (sqrt (hypot re im)) re))))
124.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)
121.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)
121.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)

simplify88.0ms

Algorithm
egg-herbie
Counts
56 → 56
Iterations

Useful iterations: 3 (82.0ms)

IterNodesCost
0217510
1720448
23120427
35001419

prune229.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 6.2b

regimes124.0ms

Accuracy

16.9% (4.8b remaining)

Error of 12.2b against oracle of 7.4b and baseline of 13.2b

bsearch37.0ms

Steps
ItersRangePoint
8
-1.3585418929568907e-114
-7.806801805986815e-118
-1.0698983567117504e-114

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02713
12913
22913

end0.0ms

sample708.0ms

Algorithm
intervals
Results
192.0ms6044×body80valid
144.0ms735×body2560valid
80.0ms467×body1280valid
65.0ms284×body5120valid
35.0ms264×body640valid
13.0ms140×body320valid
4.0ms66×body160valid