Details

Time bar (total: 3.5s)

sample24.0ms

Algorithm
intervals
Results
6.0ms207×body80valid
3.0ms18×body2560valid
2.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

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 37.8b

localize13.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:
28.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
21.0ms
(- (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

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

simplify46.0ms

Algorithm
egg-herbie
Counts
83 → 83
Iterations

Useful iterations: 2 (36.0ms)

IterNodesCost
0314760
11192522
25001473

prune187.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 6.1b

localize9.0ms

Local error

Found 3 expressions with local error:

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

rewrite15.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
sqrt-pow1 sqrt-div associate-*r/
sub-neg hypot-udef flip3-- flip3-+ pow1/2 diff-log pow-prod-down sqrt-prod flip-- flip-+ distribute-lft-out-- difference-of-squares
Counts
3 → 53
Calls
3 calls:
0.0ms
(hypot re im)
10.0ms
(sqrt (* 2.0 (+ (- (hypot re im) re) 0)))
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) 0)))
57.0ms
(- (hypot re im) re)

simplify47.0ms

Algorithm
egg-herbie
Counts
62 → 62
Iterations

Useful iterations: 2 (42.0ms)

IterNodesCost
0283345
11118247
25001236

prune153.0ms

Pruning

5 alts after pruning (4 fresh and 1 done)

Merged error: 6.0b

localize14.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)) 0)))
12.1b
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) (* -1 re))

rewrite5.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 sqrt-div associate-*r/
flip3-+ pow1/2 pow-prod-down sqrt-prod flip-+ fma-udef
Counts
4 → 45
Calls
4 calls:
0.0ms
(hypot re im)
0.0ms
(hypot re im)
4.0ms
(sqrt (* 2.0 (+ (fma (sqrt (hypot re im)) (sqrt (hypot re im)) (* -1 re)) 0)))
0.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) (* -1 re))

series459.0ms

Counts
4 → 12
Calls
4 calls:
44.0ms
(hypot re im)
46.0ms
(hypot re im)
233.0ms
(sqrt (* 2.0 (+ (fma (sqrt (hypot re im)) (sqrt (hypot re im)) (* -1 re)) 0)))
135.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) (* -1 re))

simplify38.0ms

Algorithm
egg-herbie
Counts
57 → 57
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
0207358
1759315
25001299

prune222.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 6.0b

localize17.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 (hypot re im)) (sqrt (* (* (cbrt (hypot re im)) (cbrt (hypot re im))) (cbrt (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))
1.0ms
(cbrt (hypot re im))
0.0ms
(fma (sqrt (hypot re im)) (sqrt (* (* (cbrt (hypot re im)) (cbrt (hypot re im))) (cbrt (hypot re im)))) (* -1 re))

series476.0ms

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

simplify157.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 3 (29.0ms)

IterNodesCost
0105393
1266348
2917340
34671322
45001322

prune275.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 6.0b

regimes73.0ms

Accuracy

26.8% (4.1b remaining)

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

bsearch52.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
02914
13314
23314

end0.0ms

sample653.0ms

Algorithm
intervals
Results
202.0ms6096×body80valid
121.0ms637×body2560valid
72.0ms296×body5120valid
70.0ms443×body1280valid
36.0ms303×body640valid
13.0ms146×body320valid
5.0ms79×body160valid