Details

Time bar (total: 3.7s)

sample26.0ms

Algorithm
intervals
Results
6.0ms183×body80valid
4.0ms21×body2560valid
3.0ms18×body1280valid
2.0msbody5120valid
2.0ms15×body640valid
0.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.8b

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.5b
(- (sqrt (+ (* re re) (* im im))) re)
30.2b
(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))
28.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
25.0ms
(- (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series274.0ms

Counts
4 → 12
Calls
4 calls:
26.0ms
(+ (* re re) (* im im))
166.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
47.0ms
(- (sqrt (+ (* re re) (* im im))) re)
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify46.0ms

Algorithm
egg-herbie
Counts
100 → 100
Iterations

Useful iterations: 2 (37.0ms)

IterNodesCost
0342834
11366586
25001533

prune234.0ms

Pruning

5 alts after pruning (5 fresh and 0 done)

Merged error: 8.4b

localize8.0ms

Local error

Found 2 expressions with local error:

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

rewrite15.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:
10.0ms
(sqrt (* 2.0 (+ (- (hypot re im) re) 0)))
3.0ms
(- (hypot re im) re)

series237.0ms

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

simplify44.0ms

Algorithm
egg-herbie
Counts
49 → 49
Iterations

Useful iterations: 2 (40.0ms)

IterNodesCost
0273321
11082232
25001228

prune121.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 8.2b

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)))
1.5b
(- (hypot re im) re)

rewrite26.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:
7.0ms
(sqrt (- (hypot re im) re))
13.0ms
(* (sqrt 2.0) (sqrt (- (hypot re im) re)))
3.0ms
(- (hypot re im) re)

series353.0ms

Counts
3 → 9
Calls
3 calls:
121.0ms
(sqrt (- (hypot re im) re))
178.0ms
(* (sqrt 2.0) (sqrt (- (hypot re im) re)))
54.0ms
(- (hypot re im) re)

simplify44.0ms

Algorithm
egg-herbie
Counts
92 → 92
Iterations

Useful iterations: 2 (36.0ms)

IterNodesCost
0338590
11250494
25002482

prune217.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 8.2b

localize11.0ms

Local error

Found 4 expressions with local error:

0.1b
(sqrt (sqrt (* 2.0 (+ (- (hypot re im) re) 0))))
0.3b
(* (sqrt (sqrt (* 2.0 (+ (- (hypot re im) re) 0)))) (sqrt (sqrt (* 2.0 (+ (- (hypot re im) re) 0)))))
1.5b
(- (hypot re im) re)
1.5b
(- (hypot re im) re)

rewrite107.0ms

Algorithm
rewrite-expression-head
Rules
80×sqrt-pow1
65×pow1
44×add-sqr-sqrt
31×*-un-lft-identity sqrt-prod
28×sqrt-div
27×add-cube-cbrt
23×pow-prod-down
20×pow1/2
18×prod-diff
16×associate-*r/
14×pow-prod-up
swap-sqr
pow-sqr add-log-exp
flip3-+ associate-*r* associate-*l* flip-+
add-exp-log fma-neg add-cbrt-cube
expm1-log1p-u frac-times log1p-expm1-u unswap-sqr
sub-neg flip3-- diff-log associate-*l/ flip-- distribute-lft-out-- difference-of-squares
pow2 rem-sqrt-square pow-plus sqrt-unprod prod-exp rem-square-sqrt *-commutative cbrt-unprod
Counts
4 → 158
Calls
4 calls:
11.0ms
(sqrt (sqrt (* 2.0 (+ (- (hypot re im) re) 0))))
82.0ms
(* (sqrt (sqrt (* 2.0 (+ (- (hypot re im) re) 0)))) (sqrt (sqrt (* 2.0 (+ (- (hypot re im) re) 0)))))
3.0ms
(- (hypot re im) re)
3.0ms
(- (hypot re im) re)

series529.0ms

Counts
4 → 12
Calls
4 calls:
233.0ms
(sqrt (sqrt (* 2.0 (+ (- (hypot re im) re) 0))))
183.0ms
(* (sqrt (sqrt (* 2.0 (+ (- (hypot re im) re) 0)))) (sqrt (sqrt (* 2.0 (+ (- (hypot re im) re) 0)))))
57.0ms
(- (hypot re im) re)
55.0ms
(- (hypot re im) re)

simplify89.0ms

Algorithm
egg-herbie
Counts
170 → 170
Iterations

Useful iterations: 2 (74.0ms)

IterNodesCost
04861300
122251060
250011032

prune376.0ms

Pruning

7 alts after pruning (5 fresh and 2 done)

Merged error: 8.2b

regimes80.0ms

Accuracy

29% (4.3b remaining)

Error of 11.5b against oracle of 7.3b and baseline of 13.3b

bsearch72.0ms

Steps
ItersRangePoint
10
9.764437526151242e+129
2.993516045954254e+140
3.126606582428133e+130

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02914
13314
23314

end0.0ms

sample683.0ms

Algorithm
intervals
Results
208.0ms6029×body80valid
143.0ms701×body2560valid
76.0ms471×body1280valid
70.0ms290×body5120valid
39.0ms268×body640valid
15.0ms158×body320valid
5.0ms83×body160valid