Details

Time bar (total: 3.9s)

sample29.0ms

Algorithm
intervals
Results
6.0ms193×body80valid
6.0ms19×body1280valid
4.0ms18×body2560valid
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: 35.9b

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.0b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
1.1b
(+ (sqrt (+ (* re re) (* im im))) re)
27.5b
(sqrt (+ (* re re) (* im im)))

rewrite36.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:
3.0ms
(+ (* re re) (* im im))
12.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
17.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series303.0ms

Counts
4 → 12
Calls
4 calls:
34.0ms
(+ (* re re) (* im im))
183.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
46.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
40.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

prune416.0ms

Pruning

3 alts after pruning (3 fresh and 0 done)

Merged error: 5.8b

localize10.0ms

Local error

Found 3 expressions with local error:

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

rewrite8.0ms

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

series294.0ms

Counts
3 → 9
Calls
3 calls:
45.0ms
(hypot re im)
193.0ms
(sqrt (* 2.0 (+ (hypot re im) re)))
56.0ms
(+ (hypot re im) re)

simplify54.0ms

Algorithm
egg-herbie
Counts
51 → 51
Iterations

Useful iterations: 3 (50.0ms)

IterNodesCost
0196199
1536180
21779174
35002172

prune142.0ms

Pruning

5 alts after pruning (4 fresh and 1 done)

Merged error: 5.6b

localize10.0ms

Local error

Found 4 expressions with local error:

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

rewrite4.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 log1p-expm1-u add-log-exp
hypot-udef sqrt-pow1
pow1/2 pow-prod-down sqrt-prod fma-udef
Counts
4 → 43
Calls
4 calls:
0.0ms
(hypot re im)
0.0ms
(hypot re im)
2.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)

series474.0ms

Counts
4 → 12
Calls
4 calls:
46.0ms
(hypot re im)
50.0ms
(hypot re im)
236.0ms
(sqrt (* 2.0 (fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)))
142.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)

simplify50.0ms

Algorithm
egg-herbie
Counts
55 → 55
Iterations

Useful iterations: 3 (46.0ms)

IterNodesCost
0145279
1417241
21510226
35002222

prune201.0ms

Pruning

10 alts after pruning (8 fresh and 2 done)

Merged error: 5.6b

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

series475.0ms

Counts
4 → 12
Calls
4 calls:
111.0ms
(cbrt (hypot re im))
111.0ms
(cbrt (hypot re im))
110.0ms
(cbrt (hypot re im))
143.0ms
(fma (sqrt (hypot re im)) (sqrt (* (* (cbrt (hypot re im)) (cbrt (hypot re im))) (cbrt (hypot re im)))) re)

simplify145.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 4 (136.0ms)

IterNodesCost
0100381
1249336
2841330
34138294
45001282

prune229.0ms

Pruning

10 alts after pruning (9 fresh and 1 done)

Merged error: 5.6b

regimes123.0ms

Accuracy

30.6% (4.4b remaining)

Error of 11.3b against oracle of 6.9b and baseline of 13.3b

bsearch29.0ms

Steps
ItersRangePoint
5
-1.1060260739993621e-57
-4.156244049672509e-58
-4.940006105430029e-58

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02713
12913
22913

end0.0ms

sample687.0ms

Algorithm
intervals
Results
204.0ms6047×body80valid
140.0ms681×body2560valid
78.0ms483×body1280valid
72.0ms272×body5120valid
36.0ms286×body640valid
14.0ms144×body320valid
6.0ms87×body160valid