Details

Time bar (total: 3.6s)

sample30.0ms

Algorithm
intervals
Results
9.0ms192×body80valid
5.0ms25×body2560valid
3.0ms17×body1280valid
2.0msbody5120valid
1.0msbody640valid
0.0msbody160valid
0.0msbody320valid

simplify10.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: 39.9b

Counts
2 → 1

localize10.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.7b
(- (sqrt (+ (* re re) (* im im))) re)
31.4b
(sqrt (+ (* re re) (* im im)))

rewrite32.0ms

Algorithm
rewrite-expression-head
Rules
24×add-sqr-sqrt
21×*-un-lft-identity
19×add-cube-cbrt
18×prod-diff
17×sqrt-prod
pow1 add-log-exp
fma-neg
add-exp-log expm1-log1p-u sqrt-div add-cbrt-cube log1p-expm1-u
sqrt-pow1
flip3-- flip3-+ pow1/2 associate-*r/ flip-- flip-+ difference-of-squares
+-commutative sub-neg rem-sqrt-square fma-def diff-log pow-prod-down sum-log hypot-def distribute-lft-out--
Counts
4 → 88
Calls
4 calls:
4.0ms
(+ (* re re) (* im im))
14.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
8.0ms
(- (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series299.0ms

Counts
4 → 12
Calls
4 calls:
31.0ms
(+ (* re re) (* im im))
179.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
47.0ms
(- (sqrt (+ (* re re) (* im im))) re)
41.0ms
(sqrt (+ (* re re) (* im im)))

simplify48.0ms

Algorithm
egg-herbie
Counts
100 → 100
Iterations

Useful iterations: 2 (38.0ms)

IterNodesCost
0342834
11366586
25001533

prune241.0ms

Filtered
100 candidates to 72 candidates (72.0%)
Pruning

4 alts after pruning (4 fresh and 0 done)

PrunedKeptTotal
New964100
Fresh000
Picked101
Done000
Total974101

Merged error: 8.6b

Counts
101 → 4

localize7.0ms

Local error

Found 2 expressions with local error:

0.2b
(sqrt (* 2.0 (- (hypot re im) re)))
0.7b
(- (hypot re im) re)

rewrite13.0ms

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

series251.0ms

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

simplify132.0ms

Algorithm
egg-herbie
Counts
49 → 49
Iterations

Useful iterations: 3 (126.0ms)

IterNodesCost
0221312
1728227
24440212
35001202

prune122.0ms

Filtered
49 candidates to 36 candidates (73.5%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New45449
Fresh213
Picked011
Done000
Total47653

Merged error: 8.3b

Counts
53 → 6

localize8.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (- (hypot re im) re))
0.3b
(* (sqrt 2.0) (sqrt (- (hypot re im) re)))
0.7b
(- (hypot re im) re)

rewrite20.0ms

Algorithm
rewrite-expression-head
Rules
30×add-sqr-sqrt
21×*-un-lft-identity
17×sqrt-prod
15×add-cube-cbrt
prod-diff
pow1 associate-*r*
associate-*l*
add-exp-log add-cbrt-cube add-log-exp
sqrt-div unswap-sqr
expm1-log1p-u flip3-- sqrt-pow1 pow1/2 fma-neg pow-prod-down flip-- log1p-expm1-u distribute-lft-out-- difference-of-squares
associate-*r/
sub-neg rem-sqrt-square sqrt-unprod diff-log prod-exp *-commutative cbrt-unprod
Counts
3 → 83
Calls
3 calls:
4.0ms
(sqrt (- (hypot re im) re))
9.0ms
(* (sqrt 2.0) (sqrt (- (hypot re im) re)))
4.0ms
(- (hypot re im) re)

series385.0ms

Counts
3 → 9
Calls
3 calls:
130.0ms
(sqrt (- (hypot re im) re))
193.0ms
(* (sqrt 2.0) (sqrt (- (hypot re im) re)))
61.0ms
(- (hypot re im) re)

simplify45.0ms

Algorithm
egg-herbie
Counts
92 → 92
Iterations

Useful iterations: 2 (37.0ms)

IterNodesCost
0338590
11250494
25002482

prune218.0ms

Filtered
92 candidates to 65 candidates (70.7%)
Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New91192
Fresh134
Picked101
Done011
Total93598

Merged error: 8.3b

Counts
98 → 5

localize15.0ms

Local error

Found 4 expressions with local error:

0.5b
(cbrt (hypot re im))
0.5b
(cbrt (hypot re im))
0.5b
(cbrt (hypot re im))
12.0b
(- (* (* (cbrt (hypot re im)) (cbrt (hypot re im))) (cbrt (hypot re im))) re)

rewrite15.0ms

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

series408.0ms

Counts
4 → 12
Calls
4 calls:
116.0ms
(cbrt (hypot re im))
113.0ms
(cbrt (hypot re im))
118.0ms
(cbrt (hypot re im))
61.0ms
(- (* (* (cbrt (hypot re im)) (cbrt (hypot re im))) (cbrt (hypot re im))) re)

simplify95.0ms

Algorithm
egg-herbie
Counts
69 → 69
Iterations

Useful iterations: 3 (89.0ms)

IterNodesCost
0167446
1570322
22968294
35001292

prune255.0ms

Filtered
69 candidates to 59 candidates (85.5%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New65469
Fresh033
Picked101
Done011
Total66874

Merged error: 8.3b

Counts
74 → 8

regimes101.0ms

Accuracy

20.7% (4.7b remaining)

Error of 12.0b against oracle of 7.3b and baseline of 13.2b

bsearch165.0ms

Steps
ItersRangePoint
9
5.72039747560308e+146
1.3412804874082685e+153
2.2835215283316402e+148
7
3.846365557906961e+79
1.182396247124819e+81
2.518487263438123e+80
8
1.7517637380581486e+18
3.775313734612271e+22
5.662390610560372e+20

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 1 (1.0ms)

IterNodesCost
03626
14113
24413
34413

end0.0ms

sample694.0ms

Algorithm
intervals
Results
207.0ms6020×body80valid
146.0ms728×body2560valid
79.0ms475×body1280valid
69.0ms274×body5120valid
40.0ms287×body640valid
14.0ms130×body320valid
5.0ms86×body160valid