Details

Time bar (total: 3.5s)

sample32.0ms

Algorithm
intervals
Results
9.0ms195×body80valid
7.0ms25×body2560valid
3.0ms12×body1280valid
2.0msbody5120valid
2.0msbody640valid
1.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: 37.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)))
1.1b
(- (sqrt (+ (* re re) (* im im))) re)
28.6b
(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))
13.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)))

series280.0ms

Counts
4 → 12
Calls
4 calls:
29.0ms
(+ (* re re) (* im im))
167.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
44.0ms
(- (sqrt (+ (* re re) (* im im))) re)
40.0ms
(sqrt (+ (* re re) (* im im)))

simplify48.0ms

Algorithm
egg-herbie
Counts
100 → 100
Iterations

Useful iterations: 2 (38.0ms)

IterNodesCost
0342834
11366586
25001533

prune215.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: 7.1b

Counts
101 → 4

localize7.0ms

Local error

Found 2 expressions with local error:

0.0b
(sqrt (* 2.0 (- (hypot re im) re)))
1.1b
(- (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)

series236.0ms

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

simplify132.0ms

Algorithm
egg-herbie
Counts
49 → 49
Iterations

Useful iterations: 3 (127.0ms)

IterNodesCost
0221312
1728227
24440212
35001202

prune104.0ms

Filtered
49 candidates to 37 candidates (75.5%)
Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New47249
Fresh123
Picked011
Done000
Total48553

Merged error: 7.0b

Counts
53 → 5

localize10.0ms

Local error

Found 2 expressions with local error:

0.0b
(sqrt (* 2.0 (fma (sqrt (hypot re im)) (sqrt (hypot re im)) (- re))))
14.9b
(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))

series379.0ms

Counts
2 → 6
Calls
2 calls:
238.0ms
(sqrt (* 2.0 (fma (sqrt (hypot re im)) (sqrt (hypot re im)) (- re))))
141.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) (- re))

simplify52.0ms

Algorithm
egg-herbie
Counts
29 → 29
Iterations

Useful iterations: 3 (48.0ms)

IterNodesCost
0135250
1408217
21603205
35001200

prune87.0ms

Filtered
29 candidates to 25 candidates (86.2%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New27229
Fresh033
Picked101
Done011
Total28634

Merged error: 7.0b

Counts
34 → 6

localize11.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))
14.7b
(fma (* (cbrt (hypot re im)) (cbrt (hypot re im))) (cbrt (hypot re im)) (- re))

rewrite5.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))

series455.0ms

Counts
4 → 12
Calls
4 calls:
106.0ms
(cbrt (hypot re im))
106.0ms
(cbrt (hypot re im))
106.0ms
(cbrt (hypot re im))
136.0ms
(fma (* (cbrt (hypot re im)) (cbrt (hypot re im))) (cbrt (hypot re im)) (- re))

simplify144.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 4 (133.0ms)

IterNodesCost
084329
1188287
2663279
33464272
45001263

prune175.0ms

Filtered
61 candidates to 55 candidates (90.2%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New58361
Fresh134
Picked101
Done011
Total60767

Merged error: 7.0b

Counts
67 → 7

regimes84.0ms

Accuracy

22.4% (4.6b remaining)

Error of 11.7b against oracle of 7.2b and baseline of 13.1b

bsearch81.0ms

Steps
ItersRangePoint
10
1.7693135749404962e+167
5.630928303641423e+177
6.309087312320916e+170

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02713
12913
22913

end0.0ms

sample893.0ms

Algorithm
intervals
Results
295.0ms6061×body80valid
192.0ms707×body2560valid
104.0ms457×body1280valid
93.0ms283×body5120valid
48.0ms278×body640valid
19.0ms145×body320valid
6.0ms69×body160valid