Details

Time bar (total: 3.0s)

sample26.0ms

Algorithm
intervals
Results
6.0ms192×body80valid
5.0ms25×body2560valid
3.0ms17×body1280valid
2.0msbody5120valid
1.0msbody640valid
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: 39.9b

Counts
2 → 1

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.2b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
0.7b
(- (sqrt (+ (* re re) (* im im))) re)
31.4b
(sqrt (+ (* re re) (* im im)))

rewrite26.0ms

Algorithm
rewrite-expression-head
Rules
*-commutative
hypot-def
sqrt-div
+-commutative flip3-- fma-def flip3-+ pow1/2 associate-*r/ sqrt-prod flip-- flip-+
sub-neg
Counts
4 → 22
Calls
4 calls:
4.0ms
(+ (* re re) (* im im))
11.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)))

series287.0ms

Counts
4 → 12
Calls
4 calls:
26.0ms
(+ (* re re) (* im im))
174.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
50.0ms
(- (sqrt (+ (* re re) (* im im))) re)
37.0ms
(sqrt (+ (* re re) (* im im)))

simplify73.0ms

Algorithm
egg-herbie
Counts
34 → 34
Iterations

Useful iterations: 3 (69.0ms)

IterNodesCost
0200174
1720158
22450146
35001142

prune80.0ms

Filtered
34 candidates to 25 candidates (73.5%)
Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New31334
Fresh000
Picked101
Done000
Total32335

Merged error: 8.6b

Counts
35 → 3

localize8.0ms

Local error

Found 2 expressions with local error:

0.2b
(sqrt (* 2.0 (- (hypot im re) re)))
0.7b
(- (hypot im re) re)

rewrite10.0ms

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

series249.0ms

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

simplify70.0ms

Algorithm
egg-herbie
Counts
15 → 15
Iterations

Useful iterations: 3 (63.0ms)

IterNodesCost
0185107
155298
2228892
3500191

prune41.0ms

Filtered
15 candidates to 13 candidates (86.7%)
Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New14115
Fresh112
Picked011
Done000
Total15318

Merged error: 8.4b

Counts
18 → 3

localize8.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (- (hypot im re) re))
0.3b
(* (sqrt (- (hypot im re) re)) (sqrt 2.0))
0.7b
(- (hypot im re) re)

rewrite8.0ms

Algorithm
rewrite-expression-head
Rules
sqrt-div
flip3-- pow1/2 flip--
associate-*l/
sub-neg sqrt-unprod pow-prod-down *-commutative
Counts
3 → 12
Calls
3 calls:
2.0ms
(sqrt (- (hypot im re) re))
4.0ms
(* (sqrt (- (hypot im re) re)) (sqrt 2.0))
2.0ms
(- (hypot im re) re)

series375.0ms

Counts
3 → 9
Calls
3 calls:
127.0ms
(sqrt (- (hypot im re) re))
193.0ms
(* (sqrt (- (hypot im re) re)) (sqrt 2.0))
55.0ms
(- (hypot im re) re)

simplify134.0ms

Algorithm
egg-herbie
Counts
21 → 21
Iterations

Useful iterations: 3 (130.0ms)

IterNodesCost
0272154
1842135
24273125
35001124

prune64.0ms

Filtered
21 candidates to 20 candidates (95.2%)
Pruning

3 alts after pruning (1 fresh and 2 done)

PrunedKeptTotal
New21021
Fresh011
Picked011
Done011
Total21324

Merged error: 8.4b

Counts
24 → 3

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(* 2.0 (/ (pow im 2) (+ re (hypot re im))))
0.7b
(+ re (hypot re im))
7.3b
(sqrt (* 2.0 (/ (pow im 2) (+ re (hypot re im)))))
20.2b
(/ (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)))

series415.0ms

Counts
4 → 12
Calls
4 calls:
80.0ms
(* 2.0 (/ (pow im 2) (+ re (hypot re im))))
53.0ms
(+ re (hypot re im))
205.0ms
(sqrt (* 2.0 (/ (pow im 2) (+ re (hypot re im)))))
77.0ms
(/ (pow im 2) (+ re (hypot re im)))

simplify107.0ms

Algorithm
egg-herbie
Counts
44 → 44
Iterations

Useful iterations: 2 (23.0ms)

IterNodesCost
0237218
1814207
23595201
35001201

prune117.0ms

Filtered
44 candidates to 39 candidates (88.6%)
Pruning

6 alts after pruning (4 fresh and 2 done)

PrunedKeptTotal
New40444
Fresh000
Picked101
Done022
Total41647

Merged error: 2.2b

Counts
47 → 6

regimes89.0ms

Accuracy

65.3% (3.8b remaining)

Error of 6.0b against oracle of 2.2b and baseline of 13.2b

bsearch69.0ms

Steps
ItersRangePoint
5
3.229871111029786e+177
8.840794207796226e+177
8.651257411630312e+177
7
3.3407704314481424e-278
2.583287639093751e-276
9.987616216396506e-278

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03822
13822

end0.0ms

sample666.0ms

Algorithm
intervals
Results
196.0ms6020×body80valid
141.0ms728×body2560valid
74.0ms475×body1280valid
67.0ms274×body5120valid
37.0ms287×body640valid
12.0ms130×body320valid
5.0ms86×body160valid