Details

Time bar (total: 4.3s)

sample43.0ms

Algorithm
intervals
Results
14.0ms196×body80valid
8.0ms23×body2560valid
4.0msbody5120valid
4.0ms16×body640valid
3.0ms10×body1280valid
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

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 40.7b

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

rewrite62.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:
3.0ms
(+ (* re re) (* im im))
31.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
22.0ms
(- (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series281.0ms

Counts
4 → 12
Calls
4 calls:
26.0ms
(+ (* re re) (* im im))
170.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
48.0ms
(- (sqrt (+ (* re re) (* im im))) re)
36.0ms
(sqrt (+ (* re re) (* im im)))

simplify46.0ms

Algorithm
egg-herbie
Counts
100 → 100
Iterations

Useful iterations: 2 (37.0ms)

IterNodesCost
0342834
11366586
25001533

prune237.0ms

Pruning

6 alts after pruning (6 fresh and 0 done)

Merged error: 7.6b

localize11.0ms

Local error

Found 3 expressions with local error:

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

rewrite15.0ms

Algorithm
rewrite-expression-head
Rules
12×add-sqr-sqrt *-un-lft-identity
10×add-cube-cbrt
prod-diff
pow1
add-log-exp
add-exp-log expm1-log1p-u fma-neg add-cbrt-cube log1p-expm1-u
sqrt-pow1 sqrt-div associate-*r/
sub-neg hypot-udef flip3-- flip3-+ pow1/2 diff-log pow-prod-down sqrt-prod flip-- flip-+ distribute-lft-out-- difference-of-squares
Counts
3 → 53
Calls
3 calls:
0.0ms
(hypot re im)
10.0ms
(sqrt (* 2.0 (+ (- (hypot re im) re) 0)))
3.0ms
(- (hypot re im) re)

series284.0ms

Counts
3 → 9
Calls
3 calls:
44.0ms
(hypot re im)
183.0ms
(sqrt (* 2.0 (+ (- (hypot re im) re) 0)))
56.0ms
(- (hypot re im) re)

simplify47.0ms

Algorithm
egg-herbie
Counts
62 → 62
Iterations

Useful iterations: 2 (42.0ms)

IterNodesCost
0283345
11118247
25001236

prune164.0ms

Pruning

10 alts after pruning (9 fresh and 1 done)

Merged error: 7.2b

localize8.0ms

Local error

Found 4 expressions with local error:

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

rewrite27.0ms

Algorithm
rewrite-expression-head
Rules
31×add-sqr-sqrt
22×*-un-lft-identity
17×sqrt-prod
16×add-cube-cbrt
pow1 prod-diff
associate-*r*
add-exp-log associate-*l* add-cbrt-cube add-log-exp
expm1-log1p-u sqrt-div log1p-expm1-u unswap-sqr
flip3-- sqrt-pow1 pow1/2 fma-neg pow-prod-down flip-- distribute-lft-out-- difference-of-squares
associate-*r/
sub-neg rem-sqrt-square hypot-udef sqrt-unprod diff-log prod-exp *-commutative cbrt-unprod
Counts
4 → 93
Calls
4 calls:
5.0ms
(sqrt (- (hypot re im) re))
0.0ms
(hypot re im)
5.0ms
(- (hypot re im) re)
13.0ms
(* (sqrt 2.0) (sqrt (- (hypot re im) re)))

series402.0ms

Counts
4 → 12
Calls
4 calls:
120.0ms
(sqrt (- (hypot re im) re))
46.0ms
(hypot re im)
55.0ms
(- (hypot re im) re)
181.0ms
(* (sqrt 2.0) (sqrt (- (hypot re im) re)))

simplify45.0ms

Algorithm
egg-herbie
Counts
105 → 105
Iterations

Useful iterations: 2 (36.0ms)

IterNodesCost
0348614
11286509
25001488

prune253.0ms

Pruning

10 alts after pruning (8 fresh and 2 done)

Merged error: 7.2b

localize12.0ms

Local error

Found 4 expressions with local error:

0.3b
(- (hypot re im) re)
0.4b
(* (fabs (cbrt (- (hypot re im) re))) (sqrt 2.0))
0.4b
(cbrt (- (hypot re im) re))
0.4b
(cbrt (- (hypot re im) re))

rewrite14.0ms

Algorithm
rewrite-expression-head
Rules
26×add-sqr-sqrt
22×*-un-lft-identity
16×add-cube-cbrt
10×cbrt-prod
prod-diff
pow1 add-exp-log associate-*r* add-cbrt-cube add-log-exp
expm1-log1p-u cbrt-div sqrt-prod log1p-expm1-u
flip3-- fma-neg associate-*l* flip-- distribute-lft-out-- difference-of-squares
pow1/3 unswap-sqr
sub-neg diff-log pow-prod-down prod-exp *-commutative cbrt-unprod
Counts
4 → 86
Calls
4 calls:
3.0ms
(- (hypot re im) re)
4.0ms
(* (fabs (cbrt (- (hypot re im) re))) (sqrt 2.0))
2.0ms
(cbrt (- (hypot re im) re))
2.0ms
(cbrt (- (hypot re im) re))

series396.0ms

Counts
4 → 12
Calls
4 calls:
58.0ms
(- (hypot re im) re)
33.0ms
(* (fabs (cbrt (- (hypot re im) re))) (sqrt 2.0))
151.0ms
(cbrt (- (hypot re im) re))
154.0ms
(cbrt (- (hypot re im) re))

simplify125.0ms

Algorithm
egg-herbie
Counts
98 → 98
Iterations

Useful iterations: 3 (118.0ms)

IterNodesCost
0300699
1970587
24769564
35001563

prune312.0ms

Pruning

9 alts after pruning (7 fresh and 2 done)

Merged error: 7.2b

regimes120.0ms

Accuracy

18.3% (5.0b remaining)

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

bsearch202.0ms

Steps
ItersRangePoint
7
1.5121775450301864e+201
2.4897702333233588e+203
1.0003561765365922e+202
10
8.815605325869767e-16
0.0002199982819353488
6.396566414275417e-05
9
1.4092599498627254e-49
4.735819680718145e-43
1.0542686008392895e-44

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 1 (1.0ms)

IterNodesCost
03828
14514
24814
34814

end0.0ms

sample1.2s

Algorithm
intervals
Results
418.0ms5992×body80valid
251.0ms708×body2560valid
149.0ms517×body1280valid
116.0ms278×body5120valid
62.0ms272×body640valid
26.0ms150×body320valid
11.0ms83×body160valid