* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
pow_ci(p
, a
, b
) /* p = a**b */
pow_ci(p
, a
, b
) /* p = a**b */
t
= p
->real
* x
.real
- p
->imag
* x
.imag
;
p
->imag
= p
->real
* x
.imag
+ p
->imag
* x
.real
;
t
= x
.real
* x
.real
- x
.imag
* x
.imag
;
x
.imag
= 2 * x
.real
* x
.imag
;