Details

Time bar (total: 3.9s)

sample36.0ms

Algorithm
intervals
Results
10.0ms189×body80valid
6.0ms21×body2560valid
5.0ms23×body1280valid
4.0ms12×body5120valid
1.0msbody640valid
0.0msbody160valid
0.0msbody320valid

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.3b

Counts
2 → 1

localize10.0ms

Local error

Found 3 expressions with local error:

0.2b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
0.6b
(- (sqrt (+ (* re re) (* im im))) re)
28.5b
(sqrt (+ (* re re) (* im im)))

rewrite31.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)))
11.0ms
(- (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series263.0ms

Counts
3 → 9
Calls
3 calls:
176.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
50.0ms
(- (sqrt (+ (* re re) (* im im))) re)
37.0ms
(sqrt (+ (* re re) (* im im)))

simplify46.0ms

Algorithm
egg-herbie
Counts
83 → 83
Iterations

Useful iterations: 2 (37.0ms)

IterNodesCost
0314760
11192522
25001473

prune182.0ms

Filtered
83 candidates to 59 candidates (71.1%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New77683
Fresh000
Picked101
Done000
Total78684

Merged error: 7.5b

Counts
84 → 6

localize7.0ms

Local error

Found 3 expressions with local error:

0.0b
(hypot re im)
0.2b
(sqrt (* 2.0 (- (hypot re im) re)))
0.6b
(- (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:
1.0ms
(hypot re im)
8.0ms
(sqrt (* 2.0 (- (hypot re im) re)))
4.0ms
(- (hypot re im) re)

series292.0ms

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

simplify137.0ms

Algorithm
egg-herbie
Counts
62 → 62
Iterations

Useful iterations: 3 (131.0ms)

IterNodesCost
0231336
1764242
24704227
35001217

prune134.0ms

Filtered
62 candidates to 48 candidates (77.4%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New57562
Fresh325
Picked011
Done000
Total60868

Merged error: 7.3b

Counts
68 → 8

localize11.0ms

Local error

Found 3 expressions with local error:

0.0b
(hypot re im)
0.4b
(* (sqrt 2.0) (sqrt (- (hypot re im) re)))
0.6b
(- (hypot re im) re)

rewrite16.0ms

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

series305.0ms

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

simplify41.0ms

Algorithm
egg-herbie
Counts
83 → 83
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
0287494
11097397
25001380

prune179.0ms

Filtered
83 candidates to 59 candidates (71.1%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New82183
Fresh066
Picked101
Done011
Total83891

Merged error: 7.3b

Counts
91 → 8

localize11.0ms

Local error

Found 4 expressions with local error:

0.0b
(hypot re im)
0.2b
(* (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))) (* (cbrt (sqrt 2.0)) (sqrt (- (hypot re im) re))))
0.2b
(* (cbrt (sqrt 2.0)) (sqrt (- (hypot re im) re)))
0.6b
(- (hypot re im) re)

rewrite31.0ms

Algorithm
rewrite-expression-head
Rules
32×add-sqr-sqrt
20×*-un-lft-identity
18×pow1 add-exp-log
16×add-cube-cbrt
13×sqrt-prod
11×add-cbrt-cube
10×cbrt-prod associate-*l*
associate-*r* prod-diff pow-prod-down prod-exp cbrt-unprod
associate-*r/ add-log-exp unswap-sqr
expm1-log1p-u sqrt-div log1p-expm1-u
flip3-- fma-neg flip--
*-commutative distribute-lft-out-- difference-of-squares
sub-neg hypot-udef diff-log
Counts
4 → 102
Calls
4 calls:
1.0ms
(hypot re im)
14.0ms
(* (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))) (* (cbrt (sqrt 2.0)) (sqrt (- (hypot re im) re))))
9.0ms
(* (cbrt (sqrt 2.0)) (sqrt (- (hypot re im) re)))
4.0ms
(- (hypot re im) re)

series744.0ms

Counts
4 → 12
Calls
4 calls:
54.0ms
(hypot re im)
202.0ms
(* (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))) (* (cbrt (sqrt 2.0)) (sqrt (- (hypot re im) re))))
427.0ms
(* (cbrt (sqrt 2.0)) (sqrt (- (hypot re im) re)))
60.0ms
(- (hypot re im) re)

simplify69.0ms

Algorithm
egg-herbie
Counts
114 → 114
Iterations

Useful iterations: 2 (59.0ms)

IterNodesCost
0456991
11898770
25002709

prune258.0ms

Filtered
114 candidates to 80 candidates (70.2%)
Pruning

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New1140114
Fresh066
Picked011
Done011
Total1148122

Merged error: 7.3b

Counts
122 → 8

regimes101.0ms

Accuracy

26.6% (4.3b remaining)

Error of 11.8b against oracle of 7.5b and baseline of 13.4b

bsearch63.0ms

Steps
ItersRangePoint
8
3.329794309571498e+100
2.8997891855909196e+104
8.585239363616927e+102

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02713
12913
22913

end0.0ms

sample937.0ms

Algorithm
intervals
Results
294.0ms6008×body80valid
200.0ms712×body2560valid
116.0ms493×body1280valid
105.0ms295×body5120valid
49.0ms269×body640valid
20.0ms147×body320valid
7.0ms76×body160valid