Details

Time bar (total: 3.2s)

sample28.0ms

Algorithm
intervals
Results
7.0ms199×body80valid
5.0ms23×body2560valid
2.0msbody5120valid
2.0ms11×body640valid
1.0msbody1280valid
1.0msbody320valid
0.0msbody160valid

simplify7.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.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: 38.1b

Counts
2 → 1

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

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:
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)
5.0ms
(sqrt (+ (* re re) (* im im)))

series315.0ms

Counts
4 → 12
Calls
4 calls:
27.0ms
(+ (* re re) (* im im))
191.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
57.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
40.0ms
(sqrt (+ (* re re) (* im im)))

simplify64.0ms

Algorithm
egg-herbie
Counts
33 → 33
Iterations

Useful iterations: 3 (61.0ms)

IterNodesCost
0203172
1717155
22348142
35002139

prune88.0ms

Filtered
33 candidates to 26 candidates (78.8%)
Pruning

4 alts after pruning (4 fresh and 0 done)

PrunedKeptTotal
New29433
Fresh000
Picked101
Done000
Total30434

Merged error: 6.7b

Counts
34 → 4

localize7.0ms

Local error

Found 2 expressions with local error:

0.2b
(sqrt (* 2.0 (+ (hypot im re) re)))
0.7b
(+ (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)

series246.0ms

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

simplify62.0ms

Algorithm
egg-herbie
Counts
14 → 14
Iterations

Useful iterations: 3 (60.0ms)

IterNodesCost
0186106
157994
2228386
3500185

prune43.0ms

Filtered
14 candidates to 13 candidates (92.9%)
Pruning

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New13114
Fresh123
Picked011
Done000
Total14418

Merged error: 6.5b

Counts
18 → 4

localize8.0ms

Local error

Found 3 expressions with local error:

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

rewrite13.0ms

Algorithm
rewrite-expression-head
Rules
sqrt-div
flip3-+ pow1/2 flip-+
associate-*r/
+-commutative sqrt-unprod pow-prod-down *-commutative
Counts
3 → 11
Calls
3 calls:
2.0ms
(sqrt (+ (hypot im re) re))
8.0ms
(* (sqrt 2.0) (sqrt (+ (hypot im re) re)))
2.0ms
(+ (hypot im re) re)

series363.0ms

Counts
3 → 9
Calls
3 calls:
117.0ms
(sqrt (+ (hypot im re) re))
188.0ms
(* (sqrt 2.0) (sqrt (+ (hypot im re) re)))
57.0ms
(+ (hypot im re) re)

simplify108.0ms

Algorithm
egg-herbie
Counts
20 → 20
Iterations

Useful iterations: 3 (105.0ms)

IterNodesCost
0271153
1820132
23819120
35001119

prune64.0ms

Filtered
20 candidates to 19 candidates (95.0%)
Pruning

4 alts after pruning (2 fresh and 2 done)

PrunedKeptTotal
New20020
Fresh022
Picked011
Done011
Total20424

Merged error: 6.5b

Counts
24 → 4

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(* 0.5 (sqrt (* 2.0 (/ (pow im 2) (- (hypot re im) re)))))
0.7b
(- (hypot re im) re)
4.9b
(sqrt (* 2.0 (/ (pow im 2) (- (hypot re im) re))))
22.1b
(/ (pow im 2) (- (hypot re im) re))

rewrite18.0ms

Algorithm
rewrite-expression-head
Rules
16×associate-*r/
12×sqrt-div
11×associate-*r*
10×sqrt-prod
associate-/r/ associate-/l*
clear-num
flip3-- flip--
frac-2neg *-commutative div-inv unpow2 sqr-pow
un-div-inv
sub-neg pow1/2
Counts
4 → 35
Calls
4 calls:
6.0ms
(* 0.5 (sqrt (* 2.0 (/ (pow im 2) (- (hypot re im) re)))))
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))

series622.0ms

Counts
4 → 12
Calls
4 calls:
257.0ms
(* 0.5 (sqrt (* 2.0 (/ (pow im 2) (- (hypot re im) re)))))
65.0ms
(- (hypot re im) re)
212.0ms
(sqrt (* 2.0 (/ (pow im 2) (- (hypot re im) re))))
88.0ms
(/ (pow im 2) (- (hypot re im) re))

simplify96.0ms

Algorithm
egg-herbie
Counts
47 → 47
Iterations

Useful iterations: 3 (92.0ms)

IterNodesCost
0249294
1780272
23395256
35003255

prune135.0ms

Filtered
47 candidates to 43 candidates (91.5%)
Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New43447
Fresh011
Picked101
Done022
Total44751

Merged error: 1.6b

Counts
51 → 7

regimes132.0ms

Accuracy

68.4% (3.4b remaining)

Error of 5.6b against oracle of 2.2b and baseline of 12.9b

bsearch30.0ms

Steps
ItersRangePoint
6
7.524734755904856e-279
3.3407704314481424e-278
1.3940086170973382e-278

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03014
13114
23114

end0.0ms

sample696.0ms

Algorithm
intervals
Results
215.0ms6077×body80valid
136.0ms666×body2560valid
76.0ms473×body1280valid
71.0ms293×body5120valid
39.0ms288×body640valid
13.0ms129×body320valid
5.0ms74×body160valid