Details

Time bar (total: 3.3s)

sample33.0ms

Algorithm
intervals
Results
9.0ms192×body80valid
5.0ms21×body2560valid
3.0ms10×body5120valid
3.0ms13×body1280valid
2.0ms13×body640valid
1.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: 38.9b

Counts
2 → 1

localize14.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.2b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
0.4b
(+ (sqrt (+ (* re re) (* im im))) re)
28.6b
(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))
9.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)))

series295.0ms

Counts
4 → 12
Calls
4 calls:
27.0ms
(+ (* re re) (* im im))
181.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
51.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
36.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

prune211.0ms

Filtered
79 candidates to 69 candidates (87.3%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New73679
Fresh000
Picked101
Done000
Total74680

Merged error: 7.8b

Counts
80 → 6

localize7.0ms

Local error

Found 2 expressions with local error:

0.2b
(+ (hypot re im) re)
0.2b
(sqrt (* 2.0 (+ (hypot re im) re)))

rewrite13.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:
3.0ms
(+ (hypot re im) re)
9.0ms
(sqrt (* 2.0 (+ (hypot re im) re)))

series242.0ms

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

simplify59.0ms

Algorithm
egg-herbie
Counts
38 → 38
Iterations

Useful iterations: 3 (50.0ms)

IterNodesCost
0183173
1519156
21741150
35001148

prune95.0ms

Filtered
38 candidates to 34 candidates (89.5%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New35338
Fresh325
Picked011
Done000
Total38644

Merged error: 7.6b

Counts
44 → 6

localize8.0ms

Local error

Found 3 expressions with local error:

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

rewrite17.0ms

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

series376.0ms

Counts
3 → 9
Calls
3 calls:
128.0ms
(sqrt (+ (hypot re im) re))
61.0ms
(+ (hypot re im) re)
187.0ms
(* (sqrt 2.0) (sqrt (+ (hypot re im) re)))

simplify108.0ms

Algorithm
egg-herbie
Counts
80 → 80
Iterations

Useful iterations: 3 (102.0ms)

IterNodesCost
0287433
1995403
24338388
35001387

prune170.0ms

Filtered
80 candidates to 61 candidates (76.3%)
Pruning

6 alts after pruning (4 fresh and 2 done)

PrunedKeptTotal
New80080
Fresh044
Picked011
Done011
Total80686

Merged error: 7.6b

Counts
86 → 6

localize9.0ms

Local error

Found 2 expressions with local error:

0.2b
(sqrt (* 2.0 (fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)))
15.6b
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)

rewrite4.0ms

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

series389.0ms

Counts
2 → 6
Calls
2 calls:
245.0ms
(sqrt (* 2.0 (fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)))
143.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)

simplify46.0ms

Algorithm
egg-herbie
Counts
29 → 29
Iterations

Useful iterations: 3 (43.0ms)

IterNodesCost
0129225
1378193
21445178
35002174

prune70.0ms

Filtered
29 candidates to 24 candidates (82.8%)
Pruning

9 alts after pruning (6 fresh and 3 done)

PrunedKeptTotal
New26329
Fresh033
Picked011
Done022
Total26935

Merged error: 7.6b

Counts
35 → 9

regimes139.0ms

Accuracy

-1.6% (6.1b remaining)

Error of 13.4b against oracle of 7.3b and baseline of 13.3b

bsearch1.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03721
13921
23921

end0.0ms

sample900.0ms

Algorithm
intervals
Results
284.0ms6010×body80valid
190.0ms701×body2560valid
107.0ms490×body1280valid
94.0ms289×body5120valid
49.0ms272×body640valid
19.0ms150×body320valid
8.0ms88×body160valid