5 extern double f__cabs (double, double);
7 pow_zz (doublecomplex
* r
, doublecomplex
* a
, doublecomplex
* b
)
9 double logr
, logi
, x
, y
;
11 logr
= log (f__cabs (a
->r
, a
->i
));
12 logi
= atan2 (a
->i
, a
->r
);
14 x
= exp (logr
* b
->r
- logi
* b
->i
);
15 y
= logr
* b
->i
+ logi
* b
->r
;