Details

Time bar (total: 2.8s)

sample25.0ms

Algorithm
intervals
Results
7.0ms198×body80valid
4.0ms21×body2560valid
1.0ms10×body1280valid
1.0ms12×body640valid
1.0msbody5120valid
0.0msbody160valid
0.0msbody320valid

simplify9.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0198
1288
2368
3448
4468
5468

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: 37.7b

Counts
2 → 1

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* re re) (* im im))
1.3b
(- (sqrt (+ (* re re) (* im im))) re)
29.2b
(sqrt (+ (* re re) (* im im)))

rewrite15.0ms

Algorithm
rewrite-expression-head
Rules
*-commutative hypot-def
+-commutative fma-def flip3-+ sqrt-div flip-+
sub-neg flip3-- pow1/2 flip--
Counts
3 → 17
Calls
3 calls:
5.0ms
(+ (* re re) (* im im))
5.0ms
(- (sqrt (+ (* re re) (* im im))) re)
5.0ms
(sqrt (+ (* re re) (* im im)))

series109.0ms

Counts
3 → 9
Calls
3 calls:
26.0ms
(+ (* re re) (* im im))
44.0ms
(- (sqrt (+ (* re re) (* im im))) re)
39.0ms
(sqrt (+ (* re re) (* im im)))

simplify157.0ms

Algorithm
egg-herbie
Counts
26 → 26
Iterations

Useful iterations: 3 (37.0ms)

IterNodesCost
011984
144376
2121570
3461266
4500166

prune57.0ms

Filtered
26 candidates to 17 candidates (65.4%)
Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New24226
Fresh000
Picked011
Done000
Total24327

Merged error: 8.0b

Counts
27 → 3

localize10.0ms

Local error

Found 1 expressions with local error:

1.3b
(- (hypot im re) re)

rewrite2.0ms

Algorithm
rewrite-expression-head
Rules
sub-neg flip3-- flip--
Counts
1 → 4
Calls
1 calls:
2.0ms
(- (hypot im re) re)

series51.0ms

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

simplify190.0ms

Algorithm
egg-herbie
Counts
7 → 7
Iterations

Useful iterations: 3 (8.0ms)

IterNodesCost
04722
18922
216722
333121
4120321
5495821
6500121

prune20.0ms

Filtered
7 candidates to 6 candidates (85.7%)
Pruning

3 alts after pruning (1 fresh and 2 done)

PrunedKeptTotal
New707
Fresh011
Picked011
Done011
Total7310

Merged error: 8.0b

Counts
10 → 3

localize11.0ms

Local error

Found 4 expressions with local error:

0.0b
(* 2.0 (/ (pow im 2) (+ re (hypot re im))))
0.6b
(+ re (hypot re im))
6.3b
(sqrt (* 2.0 (/ (pow im 2) (+ re (hypot re im)))))
24.1b
(/ (pow im 2) (+ re (hypot re im)))

rewrite17.0ms

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

series425.0ms

Counts
4 → 12
Calls
4 calls:
82.0ms
(* 2.0 (/ (pow im 2) (+ re (hypot re im))))
58.0ms
(+ re (hypot re im))
208.0ms
(sqrt (* 2.0 (/ (pow im 2) (+ re (hypot re im)))))
77.0ms
(/ (pow im 2) (+ re (hypot re im)))

simplify112.0ms

Algorithm
egg-herbie
Counts
44 → 44
Iterations

Useful iterations: 2 (23.0ms)

IterNodesCost
0237218
1814207
23595201
35001201

prune132.0ms

Filtered
44 candidates to 39 candidates (88.6%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New39544
Fresh000
Picked101
Done112
Total41647

Merged error: 2.3b

Counts
47 → 6

localize12.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ (+ re (hypot re im)) (pow im (/ 2 2)))
0.0b
(/ (* im 2.0) (/ (+ re (hypot re im)) (pow im (/ 2 2))))
0.6b
(+ re (hypot re im))
6.3b
(sqrt (/ (* im 2.0) (/ (+ re (hypot re im)) (pow im (/ 2 2)))))

rewrite19.0ms

Algorithm
rewrite-expression-head
Rules
12×associate-/r/
sqrt-prod div-inv
sqrt-div associate-/l/
frac-2neg clear-num associate-/r*
flip3-+ times-frac *-commutative flip-+ associate-/l*
sqr-pow
+-commutative pow1/2
Counts
4 → 39
Calls
4 calls:
4.0ms
(/ (+ re (hypot re im)) (pow im (/ 2 2)))
6.0ms
(/ (* im 2.0) (/ (+ re (hypot re im)) (pow im (/ 2 2))))
2.0ms
(+ re (hypot re im))
6.0ms
(sqrt (/ (* im 2.0) (/ (+ re (hypot re im)) (pow im (/ 2 2)))))

series427.0ms

Counts
4 → 12
Calls
4 calls:
86.0ms
(/ (+ re (hypot re im)) (pow im (/ 2 2)))
81.0ms
(/ (* im 2.0) (/ (+ re (hypot re im)) (pow im (/ 2 2))))
51.0ms
(+ re (hypot re im))
208.0ms
(sqrt (/ (* im 2.0) (/ (+ re (hypot re im)) (pow im (/ 2 2)))))

simplify40.0ms

Algorithm
egg-herbie
Counts
51 → 51
Iterations

Useful iterations: 2 (30.0ms)

IterNodesCost
0307303
1966288
25001277

prune153.0ms

Filtered
51 candidates to 49 candidates (96.1%)
Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New48351
Fresh314
Picked101
Done011
Total52557

Merged error: 0.0b

Counts
57 → 5

regimes66.0ms

Accuracy

98.2% (0.2b remaining)

Error of 0.3b against oracle of 0.1b and baseline of 13.0b

bsearch44.0ms

Steps
ItersRangePoint
10
1.6481460862435214e-262
2.3921132320884054e-244
2.1159026106570812e-251

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02412
12412

end0.0ms

sample658.0ms

Algorithm
intervals
Results
203.0ms6088×body80valid
130.0ms674×body2560valid
68.0ms453×body1280valid
65.0ms277×body5120valid
38.0ms294×body640valid
13.0ms148×body320valid
4.0ms66×body160valid