Details

Time bar (total: 3.4s)

sample41.0ms

Algorithm
intervals
Results
14.0ms197×body80valid
6.0ms19×body2560valid
5.0ms18×body1280valid
3.0msbody5120valid
2.0msbody640valid
1.0msbody320valid
0.0msbody160valid

simplify10.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0198
1288
2368
3448
4468
5468

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 34.6b

localize10.0ms

Local error

Found 2 expressions with local error:

0.6b
(- (sqrt (+ (* re re) (* im im))) re)
26.6b
(sqrt (+ (* re re) (* im im)))

rewrite29.0ms

Algorithm
rewrite-expression-head
Rules
22×add-sqr-sqrt
19×*-un-lft-identity
18×prod-diff
17×add-cube-cbrt
16×sqrt-prod
fma-neg
add-log-exp
pow1
add-exp-log expm1-log1p-u sqrt-div add-cbrt-cube log1p-expm1-u difference-of-squares
sub-neg rem-sqrt-square flip3-- sqrt-pow1 flip3-+ pow1/2 diff-log flip-- flip-+ hypot-def distribute-lft-out--
Counts
2 → 59
Calls
2 calls:
22.0ms
(- (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series84.0ms

Counts
2 → 6
Calls
2 calls:
45.0ms
(- (sqrt (+ (* re re) (* im im))) re)
39.0ms
(sqrt (+ (* re re) (* im im)))

simplify108.0ms

Algorithm
egg-herbie
Counts
65 → 65
Iterations

Useful iterations: 3 (100.0ms)

IterNodesCost
0211590
1687366
23279321
35001295

prune158.0ms

Pruning

6 alts after pruning (6 fresh and 0 done)

Merged error: 6.1b

localize8.0ms

Local error

Found 1 expressions with local error:

0.6b
(- (* 1 (hypot re im)) re)

rewrite4.0ms

Algorithm
rewrite-expression-head
Rules
*-un-lft-identity prod-diff add-log-exp
add-sqr-sqrt add-cube-cbrt
pow1 add-exp-log expm1-log1p-u sub-neg flip3-- fma-neg diff-log add-cbrt-cube flip-- log1p-expm1-u distribute-lft-out--
Counts
1 → 19
Calls
1 calls:
3.0ms
(- (* 1 (hypot re im)) re)

series59.0ms

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

simplify46.0ms

Algorithm
egg-herbie
Counts
22 → 22
Iterations

Useful iterations: 3 (43.0ms)

IterNodesCost
0117109
134679
2154576
3500272

prune71.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 6.1b

localize17.0ms

Local error

Found 4 expressions with local error:

0.0b
(sqrt (sqrt (+ (* re re) (* im im))))
14.4b
(fma (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))) (* -1 re))
26.6b
(sqrt (+ (* re re) (* im im)))
26.6b
(sqrt (+ (* re re) (* im im)))

rewrite14.0ms

Algorithm
rewrite-expression-head
Rules
16×sqrt-prod
12×add-sqr-sqrt
pow1 add-cube-cbrt *-un-lft-identity sqrt-div
sqrt-pow1
add-exp-log expm1-log1p-u rem-sqrt-square pow1/2 add-cbrt-cube log1p-expm1-u add-log-exp
flip3-+ flip-+
hypot-def
fma-udef
Counts
4 → 69
Calls
4 calls:
5.0ms
(sqrt (sqrt (+ (* re re) (* im im))))
0.0ms
(fma (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))) (* -1 re))
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series250.0ms

Counts
4 → 12
Calls
4 calls:
82.0ms
(sqrt (sqrt (+ (* re re) (* im im))))
94.0ms
(fma (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))) (* -1 re))
39.0ms
(sqrt (+ (* re re) (* im im)))
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify57.0ms

Algorithm
egg-herbie
Counts
81 → 81
Iterations

Useful iterations: 3 (45.0ms)

IterNodesCost
0185541
1507489
21477487
35001480

prune317.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 6.1b

localize18.0ms

Local error

Found 4 expressions with local error:

14.5b
(fma (sqrt (sqrt (+ (* re re) (* im im)))) (* (fabs (cbrt (sqrt (+ (* re re) (* im im))))) (sqrt (cbrt (sqrt (+ (* re re) (* im im)))))) (* -1 re))
26.6b
(sqrt (+ (* re re) (* im im)))
26.6b
(sqrt (+ (* re re) (* im im)))
26.6b
(sqrt (+ (* re re) (* im im)))

rewrite13.0ms

Algorithm
rewrite-expression-head
Rules
10×add-sqr-sqrt
sqrt-prod
pow1 add-cube-cbrt *-un-lft-identity
sqrt-div
add-exp-log expm1-log1p-u add-cbrt-cube log1p-expm1-u add-log-exp
rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 flip-+ hypot-def
fma-udef
Counts
4 → 64
Calls
4 calls:
0.0ms
(fma (sqrt (sqrt (+ (* re re) (* im im)))) (* (fabs (cbrt (sqrt (+ (* re re) (* im im))))) (sqrt (cbrt (sqrt (+ (* re re) (* im im)))))) (* -1 re))
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series231.0ms

Counts
4 → 12
Calls
4 calls:
122.0ms
(fma (sqrt (sqrt (+ (* re re) (* im im)))) (* (fabs (cbrt (sqrt (+ (* re re) (* im im))))) (sqrt (cbrt (sqrt (+ (* re re) (* im im)))))) (* -1 re))
34.0ms
(sqrt (+ (* re re) (* im im)))
39.0ms
(sqrt (+ (* re re) (* im im)))
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify67.0ms

Algorithm
egg-herbie
Counts
76 → 76
Iterations

Useful iterations: 3 (54.0ms)

IterNodesCost
0179620
1630563
21965558
35002555

prune378.0ms

Pruning

6 alts after pruning (4 fresh and 2 done)

Merged error: 6.1b

regimes132.0ms

Accuracy

23.1% (4.4b remaining)

Error of 12.0b against oracle of 7.6b and baseline of 13.3b

bsearch63.0ms

Steps
ItersRangePoint
7
1.1608947055862536e+73
1.608126041204279e+75
3.5638508626778457e+74

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02813
13213
23213

end0.0ms

sample1.2s

Algorithm
intervals
Results
423.0ms6008×body80valid
230.0ms658×body2560valid
144.0ms482×body1280valid
135.0ms324×body5120valid
67.0ms295×body640valid
29.0ms162×body320valid
10.0ms71×body160valid