Details

Time bar (total: 3.6s)

sample30.0ms

Algorithm
intervals
Results
9.0ms192×body80valid
4.0ms20×body2560valid
3.0ms19×body1280valid
2.0msbody5120valid
2.0ms12×body640valid
0.0msbody320valid
0.0msbody160valid

simplify6.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
0228
1248
2248

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

localize12.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)))

rewrite21.0ms

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

series307.0ms

Counts
4 → 12
Calls
4 calls:
27.0ms
(+ (* re re) (* im im))
186.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
55.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
38.0ms
(sqrt (+ (* re re) (* im im)))

simplify64.0ms

Algorithm
egg-herbie
Counts
26 → 26
Iterations

Useful iterations: 3 (60.0ms)

IterNodesCost
0190183
1644170
22010160
35002158

prune89.0ms

Filtered
26 candidates to 23 candidates (88.5%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New21526
Fresh000
Picked011
Done000
Total21627

Merged error: 17.9b

Counts
27 → 6

localize14.0ms

Local error

Found 4 expressions with local error:

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

rewrite27.0ms

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

series371.0ms

Counts
4 → 12
Calls
4 calls:
47.0ms
(- (sqrt (+ (* re re) (* im im))) re)
210.0ms
(sqrt (* 2.0 (/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))))
77.0ms
(/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))
37.0ms
(sqrt (+ (* re re) (* im im)))

simplify124.0ms

Algorithm
egg-herbie
Counts
38 → 38
Iterations

Useful iterations: 2 (26.0ms)

IterNodesCost
0278306
1974288
24049276
35001276

prune128.0ms

Filtered
38 candidates to 33 candidates (86.8%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New33538
Fresh224
Picked101
Done011
Total36844

Merged error: 12.4b

Counts
44 → 8

localize16.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ (pow im (/ 2 2)) (/ (- (sqrt (+ (* re re) (* im im))) re) im))
1.3b
(- (sqrt (+ (* re re) (* im im))) re)
5.5b
(sqrt (* 2.0 (/ (pow im (/ 2 2)) (/ (- (sqrt (+ (* re re) (* im im))) re) im))))
29.2b
(sqrt (+ (* re re) (* im im)))

rewrite33.0ms

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

series570.0ms

Counts
4 → 12
Calls
4 calls:
277.0ms
(/ (pow im (/ 2 2)) (/ (- (sqrt (+ (* re re) (* im im))) re) im))
54.0ms
(- (sqrt (+ (* re re) (* im im))) re)
202.0ms
(sqrt (* 2.0 (/ (pow im (/ 2 2)) (/ (- (sqrt (+ (* re re) (* im im))) re) im))))
37.0ms
(sqrt (+ (* re re) (* im im)))

simplify41.0ms

Algorithm
egg-herbie
Counts
46 → 46
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
0327392
11265372
25001367

prune170.0ms

Filtered
46 candidates to 41 candidates (89.1%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New39746
Fresh516
Picked101
Done011
Total45954

Merged error: 9.1b

Counts
54 → 9

localize15.0ms

Local error

Found 4 expressions with local error:

0.3b
(/ (sqrt (* 2.0 (pow im 2))) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
1.3b
(- (sqrt (+ (* re re) (* im im))) re)
29.2b
(sqrt (+ (* re re) (* im im)))
31.5b
(sqrt (* 2.0 (pow im 2)))

rewrite23.0ms

Algorithm
rewrite-expression-head
Rules
sqrt-prod
sqrt-div associate-*r* associate-/l*
flip3-- pow1/2 associate-/r/ *-commutative flip-- unpow2 sqr-pow
sub-neg sqrt-undiv frac-2neg flip3-+ clear-num flip-+ div-inv
Counts
4 → 22
Calls
4 calls:
9.0ms
(/ (sqrt (* 2.0 (pow im 2))) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
6.0ms
(- (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))
3.0ms
(sqrt (* 2.0 (pow im 2)))

series321.0ms

Counts
4 → 12
Calls
4 calls:
199.0ms
(/ (sqrt (* 2.0 (pow im 2))) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
46.0ms
(- (sqrt (+ (* re re) (* im im))) re)
40.0ms
(sqrt (+ (* re re) (* im im)))
35.0ms
(sqrt (* 2.0 (pow im 2)))

simplify102.0ms

Algorithm
egg-herbie
Counts
34 → 34
Iterations

Useful iterations: 2 (24.0ms)

IterNodesCost
0258231
1851217
23453205
35001205

prune102.0ms

Filtered
34 candidates to 30 candidates (88.2%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New32234
Fresh167
Picked101
Done011
Total34943

Merged error: 8.4b

Counts
43 → 9

regimes360.0ms

Accuracy

55.4% (12.7b remaining)

Error of 21.7b against oracle of 9.0b and baseline of 37.5b

bsearch2.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04440
14640
24640

end0.0ms

sample674.0ms

Algorithm
intervals
Results
200.0ms6033×body80valid
141.0ms708×body2560valid
73.0ms470×body1280valid
70.0ms270×body5120valid
37.0ms302×body640valid
14.0ms152×body320valid
4.0ms65×body160valid