mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 12:28:58 +00:00
09c656ca68
Obtained from: netlib.att.com
21 lines
345 B
C
21 lines
345 B
C
#include "f2c.h"
|
|
|
|
#ifdef KR_headers
|
|
VOID pow_ci(p, a, b) /* p = a**b */
|
|
complex *p, *a; integer *b;
|
|
#else
|
|
extern void pow_zi(doublecomplex*, doublecomplex*, integer*);
|
|
void pow_ci(complex *p, complex *a, integer *b) /* p = a**b */
|
|
#endif
|
|
{
|
|
doublecomplex p1, a1;
|
|
|
|
a1.r = a->r;
|
|
a1.i = a->i;
|
|
|
|
pow_zi(&p1, &a1, b);
|
|
|
|
p->r = p1.r;
|
|
p->i = p1.i;
|
|
}
|