Details

Time bar (total: 3.2s)

sample26.0ms

Algorithm
intervals
Results
6.0ms190×body80valid
4.0ms24×body2560valid
3.0ms19×body1280valid
2.0msbody5120valid
1.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

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 36.2b

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
0.0b
(+ (* re re) (* im im))
1.0b
(- (sqrt (+ (* re re) (* im im))) re)
26.7b
(sqrt (+ (* re re) (* im im)))

rewrite120.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:
53.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
8.0ms
(+ (* re re) (* im im))
49.0ms
(- (sqrt (+ (* re re) (* im im))) re)
8.0ms
(sqrt (+ (* re re) (* im im)))

series252.0ms

Counts
4 → 12
Calls
4 calls:
153.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
23.0ms
(+ (* re re) (* im im))
43.0ms
(- (sqrt (+ (* re re) (* im im))) re)
32.0ms
(sqrt (+ (* re re) (* im im)))

simplify47.0ms

Algorithm
egg-herbie
Counts
100 → 100
Iterations

Useful iterations: 2 (39.0ms)

IterNodesCost
0342834
11366586
25001533

prune222.0ms

Pruning

5 alts after pruning (5 fresh and 0 done)

Merged error: 5.8b

localize8.0ms

Local error

Found 2 expressions with local error:

0.0b
(sqrt (* 2.0 (+ (- (hypot re im) re) 0)))
1.0b
(- (hypot re im) re)

rewrite30.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 sqrt-pow1 sqrt-div associate-*r/ add-cbrt-cube log1p-expm1-u
sub-neg flip3-- flip3-+ pow1/2 diff-log pow-prod-down sqrt-prod flip-- flip-+ distribute-lft-out-- difference-of-squares
Counts
2 → 43
Calls
2 calls:
22.0ms
(sqrt (* 2.0 (+ (- (hypot re im) re) 0)))
6.0ms
(- (hypot re im) re)

series211.0ms

Counts
2 → 6
Calls
2 calls:
162.0ms
(sqrt (* 2.0 (+ (- (hypot re im) re) 0)))
49.0ms
(- (hypot re im) re)

simplify45.0ms

Algorithm
egg-herbie
Counts
49 → 49
Iterations

Useful iterations: 2 (40.0ms)

IterNodesCost
0273321
11082232
25001228

prune117.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 5.7b

localize11.0ms

Local error

Found 2 expressions with local error:

0.0b
(sqrt (* 2.0 (+ (fma (sqrt (hypot re im)) (sqrt (hypot re im)) (- re)) 0)))
16.3b
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) (- re))

rewrite8.0ms

Algorithm
rewrite-expression-head
Rules
pow1
add-exp-log add-sqr-sqrt expm1-log1p-u add-cube-cbrt *-un-lft-identity sqrt-pow1 sqrt-div associate-*r/ add-cbrt-cube log1p-expm1-u add-log-exp
flip3-+ pow1/2 pow-prod-down sqrt-prod flip-+ fma-udef
Counts
2 → 25
Calls
2 calls:
7.0ms
(sqrt (* 2.0 (+ (fma (sqrt (hypot re im)) (sqrt (hypot re im)) (- re)) 0)))
0.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) (- re))

series331.0ms

Counts
2 → 6
Calls
2 calls:
209.0ms
(sqrt (* 2.0 (+ (fma (sqrt (hypot re im)) (sqrt (hypot re im)) (- re)) 0)))
122.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) (- re))

simplify36.0ms

Algorithm
egg-herbie
Counts
31 → 31
Iterations

Useful iterations: 2 (32.0ms)

IterNodesCost
0192304
1720267
25001251

prune104.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 5.7b

localize16.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))
10.5b
(- (* (* (cbrt (hypot re im)) (cbrt (hypot re im))) (cbrt (hypot re im))) re)

rewrite33.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))
30.0ms
(- (* (* (cbrt (hypot re im)) (cbrt (hypot re im))) (cbrt (hypot re im))) re)

series348.0ms

Counts
4 → 12
Calls
4 calls:
97.0ms
(cbrt (hypot re im))
98.0ms
(cbrt (hypot re im))
100.0ms
(cbrt (hypot re im))
53.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 (87.0ms)

IterNodesCost
0167446
1570322
22968294
35001292

prune226.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 5.7b

regimes107.0ms

Accuracy

33.1% (4.0b remaining)

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

bsearch49.0ms

Steps
ItersRangePoint
9
3039113653047454.0
3.846186531777652e+24
2.044923130240911e+20

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02914
13314
23314

end0.0ms

sample685.0ms

Algorithm
intervals
Results
200.0ms6039×body80valid
132.0ms715×body2560valid
71.0ms472×body1280valid
64.0ms290×body5120valid
31.0ms266×body640valid
12.0ms141×body320valid
5.0ms77×body160valid