Details

Time bar (total: 3.8s)

sample28.0ms

Algorithm
intervals
Results
6.0ms186×body80valid
5.0ms26×body2560valid
3.0ms12×body5120valid
3.0ms18×body1280valid
1.0msbody640valid
1.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: 41.6b

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
0.5b
(- (sqrt (+ (* re re) (* im im))) re)
32.6b
(sqrt (+ (* re re) (* im im)))

rewrite60.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:
29.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
25.0ms
(- (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series258.0ms

Counts
3 → 9
Calls
3 calls:
172.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
49.0ms
(- (sqrt (+ (* re re) (* im im))) re)
36.0ms
(sqrt (+ (* re re) (* im im)))

simplify43.0ms

Algorithm
egg-herbie
Counts
83 → 83
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
0314760
11192522
25001473

prune186.0ms

Pruning

3 alts after pruning (3 fresh and 0 done)

Merged error: 9.4b

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.5b
(- (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
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:
0.0ms
(hypot re im)
10.0ms
(sqrt (* 2.0 (- (hypot re im) re)))
3.0ms
(- (hypot re im) re)

series288.0ms

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

simplify136.0ms

Algorithm
egg-herbie
Counts
62 → 62
Iterations

Useful iterations: 3 (130.0ms)

IterNodesCost
0231336
1764242
24704227
35001217

prune155.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 9.3b

localize10.0ms

Local error

Found 4 expressions with local error:

0.1b
(sqrt (sqrt (* 2.0 (- (hypot re im) re))))
0.4b
(* (sqrt (sqrt (* 2.0 (- (hypot re im) re)))) (sqrt (sqrt (* 2.0 (- (hypot re im) re)))))
0.5b
(- (hypot re im) re)
0.5b
(- (hypot re im) re)

rewrite51.0ms

Algorithm
rewrite-expression-head
Rules
80×sqrt-pow1
65×pow1
44×add-sqr-sqrt
31×*-un-lft-identity sqrt-prod
28×sqrt-div
27×add-cube-cbrt
23×pow-prod-down
20×pow1/2
18×prod-diff
16×associate-*r/
14×pow-prod-up
flip3-- swap-sqr flip--
pow-sqr add-log-exp
associate-*r* associate-*l*
add-exp-log fma-neg add-cbrt-cube
expm1-log1p-u frac-times log1p-expm1-u unswap-sqr
sub-neg diff-log associate-*l/ distribute-lft-out-- difference-of-squares
pow2 rem-sqrt-square pow-plus sqrt-unprod prod-exp rem-square-sqrt *-commutative cbrt-unprod
Counts
4 → 158
Calls
4 calls:
4.0ms
(sqrt (sqrt (* 2.0 (- (hypot re im) re))))
35.0ms
(* (sqrt (sqrt (* 2.0 (- (hypot re im) re)))) (sqrt (sqrt (* 2.0 (- (hypot re im) re)))))
3.0ms
(- (hypot re im) re)
3.0ms
(- (hypot re im) re)

series531.0ms

Counts
4 → 12
Calls
4 calls:
231.0ms
(sqrt (sqrt (* 2.0 (- (hypot re im) re))))
185.0ms
(* (sqrt (sqrt (* 2.0 (- (hypot re im) re)))) (sqrt (sqrt (* 2.0 (- (hypot re im) re)))))
58.0ms
(- (hypot re im) re)
56.0ms
(- (hypot re im) re)

simplify67.0ms

Algorithm
egg-herbie
Counts
170 → 170
Iterations

Useful iterations: 2 (54.0ms)

IterNodesCost
04341199
11828970
25001940

prune373.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 9.3b

localize11.0ms

Local error

Found 4 expressions with local error:

0.4b
(cbrt (- (hypot re im) re))
0.5b
(- (hypot re im) re)
0.5b
(- (hypot re im) re)
0.5b
(- (hypot re im) re)

rewrite14.0ms

Algorithm
rewrite-expression-head
Rules
34×add-sqr-sqrt *-un-lft-identity
27×prod-diff
26×add-cube-cbrt
10×add-log-exp
fma-neg
cbrt-prod
pow1 add-exp-log expm1-log1p-u flip3-- add-cbrt-cube flip-- log1p-expm1-u distribute-lft-out-- difference-of-squares
sub-neg diff-log
cbrt-div
pow1/3
Counts
4 → 101
Calls
4 calls:
2.0ms
(cbrt (- (hypot re im) re))
3.0ms
(- (hypot re im) re)
3.0ms
(- (hypot re im) re)
3.0ms
(- (hypot re im) re)

series326.0ms

Counts
4 → 12
Calls
4 calls:
154.0ms
(cbrt (- (hypot re im) re))
58.0ms
(- (hypot re im) re)
55.0ms
(- (hypot re im) re)
58.0ms
(- (hypot re im) re)

simplify109.0ms

Algorithm
egg-herbie
Counts
113 → 113
Iterations

Useful iterations: 3 (101.0ms)

IterNodesCost
0226736
1690507
23777474
35001444

prune289.0ms

Pruning

8 alts after pruning (6 fresh and 2 done)

Merged error: 9.3b

regimes77.0ms

Accuracy

13.9% (4.8b remaining)

Error of 12.1b against oracle of 7.2b and baseline of 12.9b

bsearch71.0ms

Steps
ItersRangePoint
10
7.616577456358012e+226
8.0887524214285465e+242
1.0935003992856566e+227

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02713
12913
22913

end0.0ms

sample679.0ms

Algorithm
intervals
Results
204.0ms6098×body80valid
136.0ms696×body2560valid
79.0ms472×body1280valid
63.0ms250×body5120valid
31.0ms256×body640valid
14.0ms149×body320valid
5.0ms79×body160valid