Details

Time bar (total: 3.5s)

sample27.0ms

Algorithm
intervals
Results
9.0ms207×body80valid
3.0ms18×body2560valid
3.0ms10×body5120valid
2.0ms13×body1280valid
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

prune2.0ms

Filtered
1 candidates to 0 candidates (0.0%)
Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 37.8b

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.8b
(sqrt (+ (* re re) (* im im)))

rewrite55.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:
27.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
20.0ms
(- (sqrt (+ (* re re) (* im im))) re)
3.0ms
(sqrt (+ (* re re) (* im im)))

series247.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)
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify43.0ms

Algorithm
egg-herbie
Counts
83 → 83
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
0314760
11192522
25001473

prune178.0ms

Filtered
83 candidates to 59 candidates (71.1%)
Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 6.1b

localize7.0ms

Local error

Found 3 expressions with local error:

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

rewrite14.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:
1.0ms
(hypot re im)
9.0ms
(sqrt (* 2.0 (- (hypot re im) re)))
3.0ms
(- (hypot re im) re)

series281.0ms

Counts
3 → 9
Calls
3 calls:
47.0ms
(hypot re im)
177.0ms
(sqrt (* 2.0 (- (hypot re im) re)))
57.0ms
(- (hypot re im) re)

simplify133.0ms

Algorithm
egg-herbie
Counts
62 → 62
Iterations

Useful iterations: 3 (128.0ms)

IterNodesCost
0231336
1764242
24704227
35001217

prune144.0ms

Filtered
62 candidates to 49 candidates (79.0%)
Pruning

5 alts after pruning (4 fresh and 1 done)

Merged error: 6.0b

localize10.0ms

Local error

Found 4 expressions with local error:

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

rewrite3.0ms

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

series464.0ms

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

simplify52.0ms

Algorithm
egg-herbie
Counts
55 → 55
Iterations

Useful iterations: 3 (48.0ms)

IterNodesCost
0150304
1447265
21687253
35001248

prune193.0ms

Filtered
55 candidates to 51 candidates (92.7%)
Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 6.0b

localize16.0ms

Local error

Found 4 expressions with local error:

0.6b
(cbrt (hypot re im))
0.6b
(cbrt (hypot re im))
0.6b
(cbrt (hypot re im))
12.1b
(fma (sqrt (* (* (cbrt (hypot re im)) (cbrt (hypot re im))) (cbrt (hypot re im)))) (sqrt (hypot re im)) (* -1 re))

rewrite3.0ms

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

series469.0ms

Counts
4 → 12
Calls
4 calls:
109.0ms
(cbrt (hypot re im))
109.0ms
(cbrt (hypot re im))
110.0ms
(cbrt (hypot re im))
142.0ms
(fma (sqrt (* (* (cbrt (hypot re im)) (cbrt (hypot re im))) (cbrt (hypot re im)))) (sqrt (hypot re im)) (* -1 re))

simplify156.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 3 (29.0ms)

IterNodesCost
0105393
1266348
2917340
34671322
45001322

prune251.0ms

Filtered
61 candidates to 57 candidates (93.4%)
Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 6.0b

regimes67.0ms

Accuracy

26.8% (4.1b remaining)

Error of 11.2b against oracle of 7.1b and baseline of 12.7b

bsearch55.0ms

Steps
ItersRangePoint
8
1.9386486951852963e+68
6.310868864655015e+71
7.848622788519904e+68

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02713
12913
22913

end0.0ms

sample648.0ms

Algorithm
intervals
Results
203.0ms6096×body80valid
118.0ms637×body2560valid
74.0ms296×body5120valid
69.0ms443×body1280valid
36.0ms303×body640valid
13.0ms146×body320valid
5.0ms79×body160valid