Details

Time bar (total: 3.9s)

sample36.0ms

Algorithm
intervals
Results
12.0ms193×body80valid
5.0ms19×body2560valid
4.0ms17×body1280valid
3.0msbody5120valid
2.0ms13×body640valid
1.0msbody320valid
0.0msbody160valid

simplify7.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.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: 40.7b

Counts
2 → 1

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.0b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
0.3b
(+ (sqrt (+ (* re re) (* im im))) re)
31.2b
(sqrt (+ (* re re) (* im im)))

rewrite25.0ms

Algorithm
rewrite-expression-head
Rules
*-un-lft-identity
pow1 add-sqr-sqrt add-log-exp
add-cube-cbrt fma-def sqrt-prod
add-exp-log expm1-log1p-u flip3-+ sqrt-div add-cbrt-cube flip-+ log1p-expm1-u
sqrt-pow1
+-commutative pow1/2 associate-*r/ sum-log
rem-sqrt-square pow-prod-down hypot-def distribute-lft-out
Counts
4 → 67
Calls
4 calls:
4.0ms
(+ (* re re) (* im im))
8.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)))

series292.0ms

Counts
4 → 12
Calls
4 calls:
33.0ms
(+ (* re re) (* im im))
175.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)))

simplify92.0ms

Algorithm
egg-herbie
Counts
79 → 79
Iterations

Useful iterations: 3 (86.0ms)

IterNodesCost
0296446
11086401
23561382
35001381

prune209.0ms

Filtered
79 candidates to 69 candidates (87.3%)
Pruning

5 alts after pruning (5 fresh and 0 done)

PrunedKeptTotal
New74579
Fresh000
Picked101
Done000
Total75580

Merged error: 6.9b

Counts
80 → 5

localize7.0ms

Local error

Found 2 expressions with local error:

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

rewrite9.0ms

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

series248.0ms

Counts
2 → 6
Calls
2 calls:
189.0ms
(sqrt (* 2.0 (+ (hypot re im) re)))
59.0ms
(+ (hypot re im) re)

simplify52.0ms

Algorithm
egg-herbie
Counts
38 → 38
Iterations

Useful iterations: 3 (48.0ms)

IterNodesCost
0183173
1519156
21741150
35001148

prune96.0ms

Filtered
38 candidates to 34 candidates (89.5%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New35338
Fresh134
Picked011
Done000
Total36743

Merged error: 6.8b

Counts
43 → 7

localize9.0ms

Local error

Found 4 expressions with local error:

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

rewrite11.0ms

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

series555.0ms

Counts
4 → 12
Calls
4 calls:
89.0ms
(sqrt (hypot re im))
87.0ms
(sqrt (hypot re im))
241.0ms
(sqrt (* 2.0 (fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)))
138.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)

simplify79.0ms

Algorithm
egg-herbie
Counts
65 → 65
Iterations

Useful iterations: 3 (73.0ms)

IterNodesCost
0194379
1555327
22601302
35001300

prune183.0ms

Filtered
65 candidates to 52 candidates (80.0%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New62365
Fresh055
Picked101
Done011
Total63972

Merged error: 6.8b

Counts
72 → 9

localize13.0ms

Local error

Found 4 expressions with local error:

0.3b
(* (fabs (cbrt (hypot re im))) (sqrt (cbrt (hypot re im))))
0.5b
(cbrt (hypot re im))
0.5b
(cbrt (hypot re im))
15.3b
(fma (sqrt (hypot re im)) (* (fabs (cbrt (hypot re im))) (sqrt (cbrt (hypot re im)))) re)

rewrite11.0ms

Algorithm
rewrite-expression-head
Rules
16×add-sqr-sqrt
10×cbrt-prod add-cube-cbrt *-un-lft-identity
associate-*r*
sqrt-prod
pow1 add-exp-log add-cbrt-cube
expm1-log1p-u log1p-expm1-u add-log-exp
associate-*l* unswap-sqr
pow1/3
pow-prod-down prod-exp *-commutative cbrt-unprod fma-udef
Counts
4 → 64
Calls
4 calls:
6.0ms
(* (fabs (cbrt (hypot re im))) (sqrt (cbrt (hypot re im))))
1.0ms
(cbrt (hypot re im))
1.0ms
(cbrt (hypot re im))
1.0ms
(fma (sqrt (hypot re im)) (* (fabs (cbrt (hypot re im))) (sqrt (cbrt (hypot re im)))) re)

series516.0ms

Counts
4 → 12
Calls
4 calls:
132.0ms
(* (fabs (cbrt (hypot re im))) (sqrt (cbrt (hypot re im))))
111.0ms
(cbrt (hypot re im))
110.0ms
(cbrt (hypot re im))
163.0ms
(fma (sqrt (hypot re im)) (* (fabs (cbrt (hypot re im))) (sqrt (cbrt (hypot re im)))) re)

simplify40.0ms

Algorithm
egg-herbie
Counts
76 → 76
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
0294623
11111567
25001546

prune273.0ms

Filtered
76 candidates to 66 candidates (86.8%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New74276
Fresh257
Picked101
Done011
Total77885

Merged error: 6.8b

Counts
85 → 8

regimes103.0ms

Accuracy

30% (4.0b remaining)

Error of 11.8b against oracle of 7.7b and baseline of 13.5b

bsearch69.0ms

Steps
ItersRangePoint
10
-2.464113685665428e+23
-26272724.29775533
-2.335384809104521e+22

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02713
12913
22913

end0.0ms

sample924.0ms

Algorithm
intervals
Results
290.0ms5986×body80valid
194.0ms687×body2560valid
112.0ms489×body1280valid
102.0ms301×body5120valid
52.0ms291×body640valid
24.0ms162×body320valid
8.0ms84×body160valid