1: /* 2: * Copyright (c) 1980 Regents of the University of California. 3: * All rights reserved. The Berkeley software License Agreement 4: * specifies the terms and conditions for redistribution. 5: * 6: * @(#)pow_ci.c 5.1 6/7/85 7: */ 8: 9: #include "complex" 10: 11: pow_ci(p, a, b) /* p = a**b */ 12: complex *p, *a; 13: long int *b; 14: { 15: dcomplex p1, a1; 16: 17: a1.dreal = a->real; 18: a1.dimag = a->imag; 19: 20: pow_zi(&p1, &a1, b); 21: 22: p->real = p1.dreal; 23: p->imag = p1.dimag; 24: }