Details

Time bar (total: 3.3s)

sample26.0ms

Algorithm
intervals
Results
7.0ms200×body80valid
5.0ms26×body2560valid
2.0ms12×body1280valid
2.0msbody5120valid
1.0msbody640valid
0.0msbody320valid
0.0msbody160valid

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

Counts
2 → 1

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
0.3b
(- (sqrt (+ (* re re) (* im im))) re)
30.9b
(sqrt (+ (* re re) (* im im)))

rewrite28.0ms

Algorithm
rewrite-expression-head
Rules
23×add-sqr-sqrt
20×*-un-lft-identity
18×add-cube-cbrt prod-diff
17×sqrt-prod
pow1
fma-neg
add-log-exp
sqrt-div
add-exp-log expm1-log1p-u sqrt-pow1 add-cbrt-cube log1p-expm1-u
flip3-- pow1/2 associate-*r/ flip-- difference-of-squares
sub-neg rem-sqrt-square flip3-+ diff-log pow-prod-down flip-+ hypot-def distribute-lft-out--
Counts
3 → 74
Calls
3 calls:
13.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
8.0ms
(- (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series251.0ms

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

simplify44.0ms

Algorithm
egg-herbie
Counts
83 → 83
Iterations

Useful iterations: 2 (36.0ms)

IterNodesCost
0314760
11192522
25001473

prune170.0ms

Filtered
83 candidates to 59 candidates (71.1%)
Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New80383
Fresh000
Picked101
Done000
Total81384

Merged error: 5.9b

Counts
84 → 3

localize7.0ms

Local error

Found 3 expressions with local error:

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

rewrite16.0ms

Algorithm
rewrite-expression-head
Rules
12×add-sqr-sqrt *-un-lft-identity
10×add-cube-cbrt
prod-diff
pow1
add-log-exp
add-exp-log expm1-log1p-u fma-neg add-cbrt-cube log1p-expm1-u
flip3-- sqrt-pow1 sqrt-div associate-*r/ flip--
sub-neg hypot-udef pow1/2 diff-log pow-prod-down sqrt-prod distribute-lft-out-- difference-of-squares
Counts
3 → 53
Calls
3 calls:
10.0ms
(sqrt (* 2.0 (- (hypot re im) re)))
1.0ms
(hypot re im)
4.0ms
(- (hypot re im) re)

series279.0ms

Counts
3 → 9
Calls
3 calls:
179.0ms
(sqrt (* 2.0 (- (hypot re im) re)))
46.0ms
(hypot re im)
54.0ms
(- (hypot re im) re)

simplify137.0ms

Algorithm
egg-herbie
Counts
62 → 62
Iterations

Useful iterations: 3 (131.0ms)

IterNodesCost
0231336
1764242
24704227
35001217

prune126.0ms

Filtered
62 candidates to 49 candidates (79.0%)
Pruning

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New60262
Fresh112
Picked011
Done000
Total61465

Merged error: 5.9b

Counts
65 → 4

localize11.0ms

Local error

Found 4 expressions with local error:

0.0b
(sqrt (hypot re im))
0.0b
(hypot re im)
0.0b
(hypot re im)
13.6b
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) (* -1 re))

rewrite4.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
pow1 add-cube-cbrt *-un-lft-identity
add-exp-log expm1-log1p-u add-cbrt-cube log1p-expm1-u add-log-exp
sqrt-prod
hypot-udef
rem-sqrt-square sqrt-pow1 pow1/2 fma-udef
Counts
4 → 45
Calls
4 calls:
1.0ms
(sqrt (hypot re im))
1.0ms
(hypot re im)
1.0ms
(hypot re im)
1.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) (* -1 re))

series317.0ms

Counts
4 → 12
Calls
4 calls:
85.0ms
(sqrt (hypot re im))
48.0ms
(hypot re im)
44.0ms
(hypot re im)
139.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) (* -1 re))

simplify49.0ms

Algorithm
egg-herbie
Counts
57 → 57
Iterations

Useful iterations: 3 (45.0ms)

IterNodesCost
0130231
1357200
21503192
35001187

prune191.0ms

Filtered
57 candidates to 52 candidates (91.2%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New53457
Fresh112
Picked101
Done011
Total55661

Merged error: 5.9b

Counts
61 → 6

localize13.0ms

Local error

Found 4 expressions with local error:

0.1b
(sqrt (sqrt (hypot re im)))
0.1b
(sqrt (sqrt (hypot re im)))
0.5b
(* (sqrt (sqrt (hypot re im))) (sqrt (sqrt (hypot re im))))
13.6b
(fma (sqrt (hypot re im)) (* (sqrt (sqrt (hypot re im))) (sqrt (sqrt (hypot re im)))) (* -1 re))

rewrite20.0ms

Algorithm
rewrite-expression-head
Rules
86×sqrt-prod
54×add-sqr-sqrt
40×sqrt-pow1
31×pow1
20×add-cube-cbrt *-un-lft-identity pow1/2
15×swap-sqr
associate-*r* associate-*l* pow-prod-up unswap-sqr
add-exp-log add-cbrt-cube
pow-prod-down pow-sqr
expm1-log1p-u rem-sqrt-square log1p-expm1-u add-log-exp
pow2 pow-plus sqrt-unprod prod-exp rem-square-sqrt *-commutative cbrt-unprod fma-udef
Counts
4 → 129
Calls
4 calls:
2.0ms
(sqrt (sqrt (hypot re im)))
2.0ms
(sqrt (sqrt (hypot re im)))
10.0ms
(* (sqrt (sqrt (hypot re im))) (sqrt (sqrt (hypot re im))))
1.0ms
(fma (sqrt (hypot re im)) (* (sqrt (sqrt (hypot re im))) (sqrt (sqrt (hypot re im)))) (* -1 re))

series452.0ms

Counts
4 → 12
Calls
4 calls:
113.0ms
(sqrt (sqrt (hypot re im)))
112.0ms
(sqrt (sqrt (hypot re im)))
84.0ms
(* (sqrt (sqrt (hypot re im))) (sqrt (sqrt (hypot re im))))
144.0ms
(fma (sqrt (hypot re im)) (* (sqrt (sqrt (hypot re im))) (sqrt (sqrt (hypot re im)))) (* -1 re))

simplify46.0ms

Algorithm
egg-herbie
Counts
141 → 141
Iterations

Useful iterations: 2 (36.0ms)

IterNodesCost
0255756
1985649
25001628

prune278.0ms

Filtered
141 candidates to 75 candidates (53.2%)
Pruning

6 alts after pruning (4 fresh and 2 done)

PrunedKeptTotal
New1410141
Fresh044
Picked011
Done011
Total1416147

Merged error: 5.9b

Counts
147 → 6

regimes87.0ms

Accuracy

31.1% (4.3b remaining)

Error of 11.7b against oracle of 7.4b and baseline of 13.6b

bsearch55.0ms

Steps
ItersRangePoint
8
6.532858726341657e+111
3.274976537115098e+114
1.4326139727646058e+113

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02713
12913
22913

end0.0ms

sample691.0ms

Algorithm
intervals
Results
203.0ms6000×body80valid
134.0ms694×body2560valid
85.0ms499×body1280valid
64.0ms262×body5120valid
39.0ms297×body640valid
15.0ms164×body320valid
5.0ms84×body160valid