Details

Time bar (total: 3.1s)

sample28.0ms

Algorithm
intervals
Results
7.0ms20×body2560valid
6.0ms199×body80valid
2.0ms10×body5120valid
2.0ms13×body1280valid
1.0msbody640valid
0.0msbody320valid
0.0msbody160valid

simplify7.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
0248
1308
2338
3338

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 40.1b

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
0.4b
(+ (sqrt (+ (* re re) (* im im))) re)
32.8b
(sqrt (+ (* re re) (* im im)))

rewrite31.0ms

Algorithm
rewrite-expression-head
Rules
*-un-lft-identity
pow1 add-sqr-sqrt sqrt-prod
add-cube-cbrt fma-def
add-log-exp
sqrt-div
add-exp-log expm1-log1p-u sqrt-pow1 flip3-+ add-cbrt-cube flip-+ log1p-expm1-u
pow1/2 associate-*r/
+-commutative rem-sqrt-square pow-prod-down sum-log hypot-def distribute-lft-out
Counts
3 → 53
Calls
3 calls:
11.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
15.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series263.0ms

Counts
3 → 9
Calls
3 calls:
179.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)))

simplify76.0ms

Algorithm
egg-herbie
Counts
62 → 62
Iterations

Useful iterations: 3 (71.0ms)

IterNodesCost
0264372
1830337
22660322
35002320

prune186.0ms

Pruning

5 alts after pruning (5 fresh and 0 done)

Merged error: 7.4b

localize12.0ms

Local error

Found 2 expressions with local error:

0.0b
(sqrt (* 2.0 (+ (* 1 (hypot re im)) re)))
0.4b
(+ (* 1 (hypot re im)) re)

rewrite8.0ms

Algorithm
rewrite-expression-head
Rules
pow1
add-log-exp
*-un-lft-identity
add-exp-log add-sqr-sqrt expm1-log1p-u add-cube-cbrt sqrt-pow1 flip3-+ sqrt-div associate-*r/ add-cbrt-cube flip-+ log1p-expm1-u
+-commutative fma-def pow1/2 pow-prod-down sum-log sqrt-prod distribute-lft-out
Counts
2 → 30
Calls
2 calls:
4.0ms
(sqrt (* 2.0 (+ (* 1 (hypot re im)) re)))
3.0ms
(+ (* 1 (hypot re im)) re)

series252.0ms

Counts
2 → 6
Calls
2 calls:
197.0ms
(sqrt (* 2.0 (+ (* 1 (hypot re im)) re)))
55.0ms
(+ (* 1 (hypot re im)) re)

simplify76.0ms

Algorithm
egg-herbie
Counts
36 → 36
Iterations

Useful iterations: 3 (72.0ms)

IterNodesCost
0203208
1623184
22642176
35001175

prune112.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 7.4b

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (+ (* 1 (hypot re im)) re))
0.4b
(+ (* 1 (hypot re im)) re)
0.4b
(* (sqrt 2.0) (sqrt (+ (* 1 (hypot re im)) re)))

rewrite23.0ms

Algorithm
rewrite-expression-head
Rules
17×add-sqr-sqrt
15×sqrt-prod
11×*-un-lft-identity
pow1 add-cube-cbrt
associate-*r*
associate-*l*
add-exp-log add-cbrt-cube add-log-exp
sqrt-div unswap-sqr
expm1-log1p-u sqrt-pow1 flip3-+ pow1/2 pow-prod-down flip-+ log1p-expm1-u distribute-lft-out
associate-*r/
+-commutative rem-sqrt-square fma-def sqrt-unprod prod-exp sum-log *-commutative cbrt-unprod
Counts
3 → 68
Calls
3 calls:
4.0ms
(sqrt (+ (* 1 (hypot re im)) re))
3.0ms
(+ (* 1 (hypot re im)) re)
14.0ms
(* (sqrt 2.0) (sqrt (+ (* 1 (hypot re im)) re)))

series381.0ms

Counts
3 → 9
Calls
3 calls:
125.0ms
(sqrt (+ (* 1 (hypot re im)) re))
62.0ms
(+ (* 1 (hypot re im)) re)
193.0ms
(* (sqrt 2.0) (sqrt (+ (* 1 (hypot re im)) re)))

simplify46.0ms

Algorithm
egg-herbie
Counts
77 → 77
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
0309503
11095448
25002438

prune215.0ms

Pruning

7 alts after pruning (5 fresh and 2 done)

Merged error: 7.4b

localize13.0ms

Local error

Found 4 expressions with local error:

0.4b
(+ (hypot re im) re)
1.0b
(cbrt 2.0)
1.0b
(cbrt 2.0)
1.0b
(cbrt 2.0)

rewrite9.0ms

Algorithm
rewrite-expression-head
Rules
10×*-un-lft-identity
cbrt-prod
add-sqr-sqrt add-cube-cbrt
add-log-exp
pow1 add-exp-log expm1-log1p-u add-cbrt-cube log1p-expm1-u
fma-def pow1/3
+-commutative flip3-+ sum-log flip-+ distribute-lft-out
Counts
4 → 56
Calls
4 calls:
2.0ms
(+ (hypot re im) re)
0.0ms
(cbrt 2.0)
5.0ms
(cbrt 2.0)
1.0ms
(cbrt 2.0)

series55.0ms

Counts
4 → 6
Calls
4 calls:
55.0ms
(+ (hypot re im) re)
0.0ms
(cbrt 2.0)
0.0ms
(cbrt 2.0)
0.0ms
(cbrt 2.0)

simplify76.0ms

Algorithm
egg-herbie
Counts
62 → 62
Iterations

Useful iterations: 3 (15.0ms)

IterNodesCost
0105199
1216184
2441178
31063177
43191177
55001177

prune211.0ms

Pruning

9 alts after pruning (7 fresh and 2 done)

Merged error: 7.3b

regimes180.0ms

Accuracy

2.3% (6.5b remaining)

Error of 13.8b against oracle of 7.3b and baseline of 14.0b

bsearch170.0ms

Steps
ItersRangePoint
9
4.8628084908197105e+54
4.258838753023189e+61
2.963711736123439e+58
10
6.157903029658734e-17
1.6022175866244216e-06
1.1016319640223668e-07
7
-9.005634263921258e+27
-1.3211094853598534e+26
-1.0469681604918512e+27
7
-3.258679308852972e+154
-2.403665538206493e+152
-1.2115064360128906e+154

simplify4.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 2 (1.0ms)

IterNodesCost
04032
14532
25113
35413
46013
57113
67813
77913
87913

end0.0ms

sample673.0ms

Algorithm
intervals
Results
194.0ms5930×body80valid
128.0ms686×body2560valid
89.0ms543×body1280valid
79.0ms318×body5120valid
33.0ms272×body640valid
14.0ms151×body320valid
6.0ms100×body160valid