Details

Time bar (total: 3.8s)

sample26.0ms

Algorithm
intervals
Results
6.0ms199×body80valid
3.0ms18×body2560valid
3.0ms19×body1280valid
1.0msbody5120valid
1.0ms10×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: 39.6b

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)))
0.3b
(- (sqrt (+ (* re re) (* im im))) re)
31.6b
(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:
8.0ms
(+ (* re re) (* im im))
53.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)))

series297.0ms

Counts
4 → 12
Calls
4 calls:
28.0ms
(+ (* re re) (* im im))
179.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
48.0ms
(- (sqrt (+ (* re re) (* im im))) re)
42.0ms
(sqrt (+ (* re re) (* im im)))

simplify44.0ms

Algorithm
egg-herbie
Counts
100 → 100
Iterations

Useful iterations: 2 (36.0ms)

IterNodesCost
0342834
11366586
25001533

prune239.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 6.1b

localize12.0ms

Local error

Found 3 expressions with local error:

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

rewrite51.0ms

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

series300.0ms

Counts
3 → 9
Calls
3 calls:
51.0ms
(hypot re im)
186.0ms
(sqrt (* 2.0 (* 1 (- (hypot re im) re))))
62.0ms
(- (hypot re im) re)

simplify32.0ms

Algorithm
egg-herbie
Counts
63 → 63
Iterations

Useful iterations: 2 (27.0ms)

IterNodesCost
0242349
1892254
25002241

prune158.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 6.0b

localize15.0ms

Local error

Found 4 expressions with local error:

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

rewrite92.0ms

Algorithm
rewrite-expression-head
Rules
28×add-sqr-sqrt
26×pow1
22×sqrt-prod
14×add-cube-cbrt *-un-lft-identity
12×sqrt-pow1
10×pow1/2
swap-sqr
add-exp-log associate-*r* associate-*l* pow-prod-down add-cbrt-cube add-log-exp
pow-prod-up
expm1-log1p-u associate-*r/ log1p-expm1-u unswap-sqr
prod-diff pow-sqr
flip3-- sqrt-div flip--
pow2 sub-neg rem-sqrt-square pow-plus fma-neg sqrt-unprod diff-log prod-exp rem-square-sqrt *-commutative cbrt-unprod difference-of-squares
Counts
4 → 101
Calls
4 calls:
1.0ms
(sqrt (hypot re im))
62.0ms
(sqrt (* 2.0 (* 1 (- (* (sqrt (hypot re im)) (sqrt (hypot re im))) re))))
12.0ms
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
13.0ms
(- (* (sqrt (hypot re im)) (sqrt (hypot re im))) re)

series389.0ms

Counts
4 → 12
Calls
4 calls:
88.0ms
(sqrt (hypot re im))
190.0ms
(sqrt (* 2.0 (* 1 (- (* (sqrt (hypot re im)) (sqrt (hypot re im))) re))))
48.0ms
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
62.0ms
(- (* (sqrt (hypot re im)) (sqrt (hypot re im))) re)

simplify55.0ms

Algorithm
egg-herbie
Counts
113 → 113
Iterations

Useful iterations: 2 (48.0ms)

IterNodesCost
0353629
11523514
25002498

prune253.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 6.0b

localize17.0ms

Local error

Found 4 expressions with local error:

0.3b
(* (fabs (cbrt (hypot re im))) (sqrt (hypot re im)))
0.6b
(cbrt (hypot re im))
0.6b
(cbrt (hypot re im))
6.9b
(- (* (* (fabs (cbrt (hypot re im))) (sqrt (hypot re im))) (sqrt (cbrt (hypot re im)))) re)

rewrite42.0ms

Algorithm
rewrite-expression-head
Rules
14×add-sqr-sqrt
10×add-cube-cbrt *-un-lft-identity
pow1 add-exp-log cbrt-prod associate-*r* add-cbrt-cube add-log-exp
expm1-log1p-u sqrt-prod log1p-expm1-u
associate-*l* prod-diff
pow1/3 unswap-sqr
sub-neg flip3-- fma-neg diff-log pow-prod-down prod-exp *-commutative flip-- cbrt-unprod
Counts
4 → 68
Calls
4 calls:
12.0ms
(* (fabs (cbrt (hypot re im))) (sqrt (hypot re im)))
1.0ms
(cbrt (hypot re im))
1.0ms
(cbrt (hypot re im))
28.0ms
(- (* (* (fabs (cbrt (hypot re im))) (sqrt (hypot re im))) (sqrt (cbrt (hypot re im)))) re)

series435.0ms

Counts
4 → 12
Calls
4 calls:
98.0ms
(* (fabs (cbrt (hypot re im))) (sqrt (hypot re im)))
110.0ms
(cbrt (hypot re im))
115.0ms
(cbrt (hypot re im))
112.0ms
(- (* (* (fabs (cbrt (hypot re im))) (sqrt (hypot re im))) (sqrt (cbrt (hypot re im)))) re)

simplify47.0ms

Algorithm
egg-herbie
Counts
80 → 80
Iterations

Useful iterations: 2 (40.0ms)

IterNodesCost
0342719
11404611
25001588

prune298.0ms

Pruning

9 alts after pruning (8 fresh and 1 done)

Merged error: 6.0b

regimes99.0ms

Accuracy

20% (4.3b remaining)

Error of 11.9b against oracle of 7.6b and baseline of 13.0b

bsearch48.0ms

Steps
ItersRangePoint
7
5.834639018555973e+189
1.1171867974082764e+192
6.234036773388663e+189

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03114
13514
23514

end0.0ms

sample711.0ms

Algorithm
intervals
Results
199.0ms6064×body80valid
137.0ms674×body2560valid
77.0ms486×body1280valid
66.0ms286×body5120valid
33.0ms273×body640valid
13.0ms139×body320valid
5.0ms78×body160valid