Details

Time bar (total: 3.8s)

sample35.0ms

Algorithm
intervals
Results
10.0ms193×body80valid
5.0ms18×body2560valid
4.0ms19×body1280valid
4.0ms12×body5120valid
2.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

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: 37.4b

Counts
2 → 1

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
0.8b
(+ (sqrt (+ (* re re) (* im im))) re)
28.5b
(sqrt (+ (* re re) (* im im)))

rewrite24.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:
12.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
7.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series282.0ms

Counts
3 → 9
Calls
3 calls:
190.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
54.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
38.0ms
(sqrt (+ (* re re) (* im im)))

simplify76.0ms

Algorithm
egg-herbie
Counts
62 → 62
Iterations

Useful iterations: 3 (70.0ms)

IterNodesCost
0264375
1830337
22660322
35002320

prune168.0ms

Filtered
62 candidates to 56 candidates (90.3%)
Pruning

4 alts after pruning (4 fresh and 0 done)

PrunedKeptTotal
New58462
Fresh000
Picked101
Done000
Total59463

Merged error: 7.6b

Counts
63 → 4

localize7.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (* 2.0 (+ (hypot re im) re)))
0.0b
(hypot re im)
0.8b
(+ (hypot re im) re)

rewrite9.0ms

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

series321.0ms

Counts
3 → 9
Calls
3 calls:
204.0ms
(sqrt (* 2.0 (+ (hypot re im) re)))
54.0ms
(hypot re im)
63.0ms
(+ (hypot re im) re)

simplify55.0ms

Algorithm
egg-herbie
Counts
51 → 51
Iterations

Useful iterations: 3 (50.0ms)

IterNodesCost
0196197
1536180
21779174
35002172

prune135.0ms

Filtered
51 candidates to 47 candidates (92.2%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New46551
Fresh213
Picked011
Done000
Total48755

Merged error: 7.5b

Counts
55 → 7

localize8.0ms

Local error

Found 4 expressions with local error:

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

rewrite18.0ms

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

series457.0ms

Counts
4 → 12
Calls
4 calls:
134.0ms
(sqrt (+ (hypot re im) re))
55.0ms
(hypot re im)
205.0ms
(* (sqrt 2.0) (sqrt (+ (hypot re im) re)))
64.0ms
(+ (hypot re im) re)

simplify118.0ms

Algorithm
egg-herbie
Counts
93 → 93
Iterations

Useful iterations: 3 (111.0ms)

IterNodesCost
0300457
11015427
24386412
35001411

prune215.0ms

Filtered
93 candidates to 74 candidates (79.6%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New92193
Fresh145
Picked101
Done011
Total946100

Merged error: 7.5b

Counts
100 → 6

localize9.0ms

Local error

Found 4 expressions with local error:

0.0b
(hypot re im)
0.0b
(sqrt (hypot re im))
0.0b
(sqrt (hypot re im))
15.3b
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)

rewrite17.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
pow1 add-cube-cbrt *-un-lft-identity sqrt-prod
add-exp-log expm1-log1p-u add-cbrt-cube log1p-expm1-u add-log-exp
rem-sqrt-square sqrt-pow1 pow1/2
hypot-udef fma-udef
Counts
4 → 50
Calls
4 calls:
1.0ms
(hypot re im)
8.0ms
(sqrt (hypot re im))
3.0ms
(sqrt (hypot re im))
1.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)

series386.0ms

Counts
4 → 12
Calls
4 calls:
54.0ms
(hypot re im)
92.0ms
(sqrt (hypot re im))
91.0ms
(sqrt (hypot re im))
150.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)

simplify47.0ms

Algorithm
egg-herbie
Counts
62 → 62
Iterations

Useful iterations: 3 (42.0ms)

IterNodesCost
0128269
1344231
21419217
35002210

prune164.0ms

Filtered
62 candidates to 52 candidates (83.9%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New56662
Fresh224
Picked101
Done011
Total59968

Merged error: 7.5b

Counts
68 → 9

regimes99.0ms

Accuracy

24.4% (4.4b remaining)

Error of 11.8b against oracle of 7.4b and baseline of 13.2b

bsearch194.0ms

Steps
ItersRangePoint
8
-6.167970123584788e-43
-2.0214988117747877e-45
-1.4654363927656778e-43
9
-1.6263070950360542e+97
-9.316421477354923e+91
-2.0110444043841323e+96
10
-1.0269636514224566e+167
-2.3864984321674706e+156
-1.1576207092487859e+157

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 1 (1.0ms)

IterNodesCost
03224
13512
23812
33812

end0.0ms

sample915.0ms

Algorithm
intervals
Results
296.0ms6051×body80valid
195.0ms681×body2560valid
112.0ms486×body1280valid
89.0ms260×body5120valid
51.0ms278×body640valid
22.0ms159×body320valid
8.0ms85×body160valid