Details

Time bar (total: 3.4s)

sample37.0ms

Algorithm
intervals
Results
10.0ms189×body80valid
9.0ms30×body2560valid
4.0ms15×body1280valid
3.0ms10×body5120valid
2.0ms10×body640valid
0.0msbody320valid
0.0msbody160valid

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

Counts
2 → 1

localize10.0ms

Local error

Found 2 expressions with local error:

0.6b
(- (sqrt (+ (* re re) (* im im))) re)
26.5b
(sqrt (+ (* re re) (* im im)))

rewrite17.0ms

Algorithm
rewrite-expression-head
Rules
22×add-sqr-sqrt
19×*-un-lft-identity
18×prod-diff
17×add-cube-cbrt
16×sqrt-prod
fma-neg
add-log-exp
pow1
add-exp-log expm1-log1p-u sqrt-div add-cbrt-cube log1p-expm1-u difference-of-squares
sub-neg rem-sqrt-square flip3-- sqrt-pow1 flip3-+ pow1/2 diff-log flip-- flip-+ hypot-def distribute-lft-out--
Counts
2 → 59
Calls
2 calls:
8.0ms
(- (sqrt (+ (* re re) (* im im))) re)
7.0ms
(sqrt (+ (* re re) (* im im)))

series86.0ms

Counts
2 → 6
Calls
2 calls:
49.0ms
(- (sqrt (+ (* re re) (* im im))) re)
37.0ms
(sqrt (+ (* re re) (* im im)))

simplify109.0ms

Algorithm
egg-herbie
Counts
65 → 65
Iterations

Useful iterations: 3 (102.0ms)

IterNodesCost
0211590
1687366
23279321
35001295

prune134.0ms

Filtered
65 candidates to 43 candidates (66.2%)
Pruning

4 alts after pruning (4 fresh and 0 done)

PrunedKeptTotal
New61465
Fresh000
Picked101
Done000
Total62466

Merged error: 9.4b

Counts
66 → 4

localize7.0ms

Local error

Found 2 expressions with local error:

0.0b
(hypot re im)
0.6b
(- (hypot re im) re)

rewrite7.0ms

Algorithm
rewrite-expression-head
Rules
11×add-sqr-sqrt *-un-lft-identity
add-cube-cbrt prod-diff
add-log-exp
fma-neg
pow1 add-exp-log expm1-log1p-u add-cbrt-cube log1p-expm1-u
sub-neg hypot-udef flip3-- diff-log flip-- distribute-lft-out-- difference-of-squares
Counts
2 → 38
Calls
2 calls:
1.0ms
(hypot re im)
4.0ms
(- (hypot re im) re)

series103.0ms

Counts
2 → 6
Calls
2 calls:
44.0ms
(hypot re im)
59.0ms
(- (hypot re im) re)

simplify53.0ms

Algorithm
egg-herbie
Counts
44 → 44
Iterations

Useful iterations: 3 (49.0ms)

IterNodesCost
0130223
1366140
21695131
35001109

prune93.0ms

Filtered
44 candidates to 32 candidates (72.7%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New40444
Fresh123
Picked011
Done000
Total41748

Merged error: 9.3b

Counts
48 → 7

localize10.0ms

Local error

Found 4 expressions with local error:

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

rewrite28.0ms

Algorithm
rewrite-expression-head
Rules
54×add-sqr-sqrt
47×*-un-lft-identity
35×sqrt-prod
27×add-cube-cbrt
20×pow1
18×prod-diff
14×sqrt-div
12×swap-sqr
flip3-- sqrt-pow1 pow1/2 flip-- distribute-lft-out--
associate-*r* associate-*l* add-log-exp
difference-of-squares
add-exp-log fma-neg add-cbrt-cube
pow-prod-up
expm1-log1p-u frac-times log1p-expm1-u unswap-sqr
pow-prod-down pow-sqr
sub-neg diff-log associate-*r/ associate-*l/
pow2 rem-sqrt-square pow-plus sqrt-unprod prod-exp rem-square-sqrt *-commutative cbrt-unprod
Counts
4 → 142
Calls
4 calls:
4.0ms
(sqrt (- (hypot re im) re))
11.0ms
(* (sqrt (- (hypot re im) re)) (sqrt (- (hypot re im) re)))
4.0ms
(- (hypot re im) re)
4.0ms
(- (hypot re im) re)

series298.0ms

Counts
4 → 12
Calls
4 calls:
126.0ms
(sqrt (- (hypot re im) re))
55.0ms
(* (sqrt (- (hypot re im) re)) (sqrt (- (hypot re im) re)))
58.0ms
(- (hypot re im) re)
59.0ms
(- (hypot re im) re)

simplify52.0ms

Algorithm
egg-herbie
Counts
154 → 154
Iterations

Useful iterations: 2 (40.0ms)

IterNodesCost
0286899
11123706
25001691

prune289.0ms

Filtered
154 candidates to 93 candidates (60.4%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New1531154
Fresh055
Picked101
Done011
Total1547161

Merged error: 9.3b

Counts
161 → 7

localize20.0ms

Local error

Found 4 expressions with local error:

0.6b
(cbrt (hypot re im))
0.6b
(cbrt (hypot re im))
0.6b
(cbrt (hypot re im))
16.3b
(fma (* (cbrt (hypot re im)) (cbrt (hypot re im))) (cbrt (hypot re im)) (- re))

rewrite6.0ms

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

series474.0ms

Counts
4 → 12
Calls
4 calls:
110.0ms
(cbrt (hypot re im))
113.0ms
(cbrt (hypot re im))
113.0ms
(cbrt (hypot re im))
137.0ms
(fma (* (cbrt (hypot re im)) (cbrt (hypot re im))) (cbrt (hypot re im)) (- re))

simplify140.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 4 (135.0ms)

IterNodesCost
084329
1188287
2663279
33464272
45001263

prune215.0ms

Filtered
61 candidates to 55 candidates (90.2%)
Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New61061
Fresh055
Picked011
Done011
Total61768

Merged error: 9.3b

Counts
68 → 7

regimes92.0ms

Accuracy

18% (4.7b remaining)

Error of 12.1b against oracle of 7.4b and baseline of 13.1b

bsearch162.0ms

Steps
ItersRangePoint
8
1.5412126804408514e+192
5.871468893721034e+195
1.0028199647798038e+194
5
1.9303370681519622e+121
4.0160950957056723e+121
3.8425622158719786e+121
9
1.5152024321248757e-44
3.618980236523305e-39
1.3130202236219853e-40

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 1 (1.0ms)

IterNodesCost
03324
13612
23912
33912

end0.0ms

sample952.0ms

Algorithm
intervals
Results
305.0ms6062×body80valid
197.0ms669×body2560valid
116.0ms485×body1280valid
104.0ms281×body5120valid
55.0ms295×body640valid
22.0ms144×body320valid
6.0ms64×body160valid