Details

Time bar (total: 2.9s)

sample27.0ms

Algorithm
intervals
Results
6.0ms192×body80valid
4.0ms20×body2560valid
3.0ms19×body1280valid
2.0msbody5120valid
1.0ms12×body640valid
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

Filtered
1 candidates to 0 candidates (0.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 40.1b

Counts
2 → 1

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)))
0.6b
(+ (sqrt (+ (* re re) (* im im))) re)
29.2b
(sqrt (+ (* re re) (* im im)))

rewrite23.0ms

Algorithm
rewrite-expression-head
Rules
*-commutative
hypot-def
flip3-+ sqrt-div flip-+
+-commutative
fma-def pow1/2 associate-*r/ sqrt-prod
Counts
4 → 21
Calls
4 calls:
5.0ms
(+ (* re re) (* im im))
8.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
5.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
5.0ms
(sqrt (+ (* re re) (* im im)))

series299.0ms

Counts
4 → 12
Calls
4 calls:
30.0ms
(+ (* re re) (* im im))
179.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
50.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
40.0ms
(sqrt (+ (* re re) (* im im)))

simplify71.0ms

Algorithm
egg-herbie
Counts
33 → 33
Iterations

Useful iterations: 3 (67.0ms)

IterNodesCost
0203172
1717155
22348142
35002139

prune87.0ms

Filtered
33 candidates to 26 candidates (78.8%)
Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New30333
Fresh000
Picked101
Done000
Total31334

Merged error: 7.9b

Counts
34 → 3

localize7.0ms

Local error

Found 2 expressions with local error:

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

rewrite6.0ms

Algorithm
rewrite-expression-head
Rules
flip3-+ sqrt-div associate-*r/ sqrt-prod flip-+
+-commutative pow1/2 *-commutative
Counts
2 → 8
Calls
2 calls:
4.0ms
(sqrt (* 2.0 (+ (hypot im re) re)))
2.0ms
(+ (hypot im re) re)

series243.0ms

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

simplify66.0ms

Algorithm
egg-herbie
Counts
14 → 14
Iterations

Useful iterations: 3 (63.0ms)

IterNodesCost
0186106
157994
2228386
3500185

prune47.0ms

Filtered
14 candidates to 14 candidates (100.0%)
Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New14014
Fresh022
Picked011
Done000
Total14317

Merged error: 7.9b

Counts
17 → 3

localize10.0ms

Local error

Found 3 expressions with local error:

1.3b
(- (hypot re im) re)
5.5b
(sqrt (* 2.0 (/ (pow im 2) (- (hypot re im) re))))
24.6b
(/ (pow im 2) (- (hypot re im) re))

rewrite12.0ms

Algorithm
rewrite-expression-head
Rules
sqrt-div
associate-*r/ sqrt-prod
associate-/r/ associate-/l*
flip3-- associate-*r* clear-num flip--
frac-2neg div-inv unpow2 sqr-pow
sub-neg pow1/2 un-div-inv *-commutative
Counts
3 → 23
Calls
3 calls:
2.0ms
(- (hypot re im) re)
5.0ms
(sqrt (* 2.0 (/ (pow im 2) (- (hypot re im) re))))
4.0ms
(/ (pow im 2) (- (hypot re im) re))

series346.0ms

Counts
3 → 9
Calls
3 calls:
60.0ms
(- (hypot re im) re)
202.0ms
(sqrt (* 2.0 (/ (pow im 2) (- (hypot re im) re))))
83.0ms
(/ (pow im 2) (- (hypot re im) re))

simplify97.0ms

Algorithm
egg-herbie
Counts
32 → 32
Iterations

Useful iterations: 3 (93.0ms)

IterNodesCost
0230192
1761181
23376173
35001172

prune103.0ms

Filtered
32 candidates to 29 candidates (90.6%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New28432
Fresh011
Picked101
Done011
Total29635

Merged error: 2.5b

Counts
35 → 6

localize9.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ (- (hypot re im) re) im)
0.0b
(/ im (/ (- (hypot re im) re) im))
1.3b
(- (hypot re im) re)
5.5b
(sqrt (* 2.0 (/ im (/ (- (hypot re im) re) im))))

rewrite17.0ms

Algorithm
rewrite-expression-head
Rules
10×associate-/r/
sqrt-prod
associate-*r* clear-num associate-/l/
frac-2neg sqrt-div div-inv
flip3-- associate-*r/ flip--
associate-/r*
sub-neg pow1/2 div-sub un-div-inv *-commutative
Counts
4 → 33
Calls
4 calls:
3.0ms
(/ (- (hypot re im) re) im)
4.0ms
(/ im (/ (- (hypot re im) re) im))
2.0ms
(- (hypot re im) re)
6.0ms
(sqrt (* 2.0 (/ im (/ (- (hypot re im) re) im))))

series435.0ms

Counts
4 → 12
Calls
4 calls:
86.0ms
(/ (- (hypot re im) re) im)
84.0ms
(/ im (/ (- (hypot re im) re) im))
59.0ms
(- (hypot re im) re)
206.0ms
(sqrt (* 2.0 (/ im (/ (- (hypot re im) re) im))))

simplify114.0ms

Algorithm
egg-herbie
Counts
45 → 45
Iterations

Useful iterations: 3 (109.0ms)

IterNodesCost
0268239
1943228
24229218
35001217

prune114.0ms

Filtered
45 candidates to 40 candidates (88.9%)
Pruning

5 alts after pruning (3 fresh and 2 done)

PrunedKeptTotal
New43245
Fresh314
Picked011
Done011
Total46551

Merged error: 1.3b

Counts
51 → 5

regimes62.0ms

Accuracy

57.3% (5.2b remaining)

Error of 6.3b against oracle of 1.1b and baseline of 13.4b

bsearch38.0ms

Steps
ItersRangePoint
8
-3.666763002298925e-174
-3.262421321844347e-177
-7.669907494275288e-177

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02412
12412

end0.0ms

sample665.0ms

Algorithm
intervals
Results
201.0ms6033×body80valid
137.0ms708×body2560valid
72.0ms470×body1280valid
63.0ms270×body5120valid
39.0ms302×body640valid
14.0ms152×body320valid
4.0ms65×body160valid