Details

Time bar (total: 3.1s)

sample26.0ms

Algorithm
intervals
Results
6.0ms196×body80valid
4.0ms21×body2560valid
2.0ms15×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: 39.0b

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

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

series253.0ms

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

simplify46.0ms

Algorithm
egg-herbie
Counts
100 → 100
Iterations

Useful iterations: 2 (38.0ms)

IterNodesCost
0342834
11366586
25001533

prune229.0ms

Pruning

5 alts after pruning (5 fresh and 0 done)

Merged error: 5.5b

localize8.0ms

Local error

Found 2 expressions with local error:

0.2b
(sqrt (* 2.0 (+ (- (hypot re im) re) 0)))
0.5b
(- (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)

series212.0ms

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

simplify45.0ms

Algorithm
egg-herbie
Counts
49 → 49
Iterations

Useful iterations: 2 (41.0ms)

IterNodesCost
0273321
11082232
25001228

prune117.0ms

Pruning

5 alts after pruning (4 fresh and 1 done)

Merged error: 5.2b

localize8.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (- (hypot re im) re))
0.4b
(* (sqrt 2.0) (sqrt (- (hypot re im) re)))
0.5b
(- (hypot re im) re)

rewrite42.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:
9.0ms
(sqrt (- (hypot re im) re))
24.0ms
(* (sqrt 2.0) (sqrt (- (hypot re im) re)))
6.0ms
(- (hypot re im) re)

series326.0ms

Counts
3 → 9
Calls
3 calls:
110.0ms
(sqrt (- (hypot re im) re))
164.0ms
(* (sqrt 2.0) (sqrt (- (hypot re im) re)))
53.0ms
(- (hypot re im) re)

simplify43.0ms

Algorithm
egg-herbie
Counts
92 → 92
Iterations

Useful iterations: 2 (36.0ms)

IterNodesCost
0338590
11250494
25002482

prune205.0ms

Pruning

5 alts after pruning (3 fresh and 2 done)

Merged error: 5.2b

localize11.0ms

Local error

Found 2 expressions with local error:

0.2b
(sqrt (* 2.0 (+ (fma (sqrt (hypot re im)) (sqrt (hypot re im)) (- re)) 0)))
14.8b
(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))

series336.0ms

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

simplify35.0ms

Algorithm
egg-herbie
Counts
31 → 31
Iterations

Useful iterations: 2 (31.0ms)

IterNodesCost
0192304
1720267
25001251

prune94.0ms

Pruning

8 alts after pruning (6 fresh and 2 done)

Merged error: 5.2b

regimes159.0ms

Accuracy

-1.3% (6.2b remaining)

Error of 13.5b against oracle of 7.4b and baseline of 13.5b

bsearch2.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05154
15554
25554

end0.0ms

sample694.0ms

Algorithm
intervals
Results
189.0ms6010×body80valid
130.0ms705×body2560valid
73.0ms469×body1280valid
66.0ms288×body5120valid
40.0ms299×body640valid
13.0ms145×body320valid
7.0ms84×body160valid