1*ba41c650SJérôme Duval /* Complex power of double values.
2*ba41c650SJérôme Duval Copyright (C) 1997 Free Software Foundation, Inc.
3*ba41c650SJérôme Duval This file is part of the GNU C Library.
4*ba41c650SJérôme Duval Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
5*ba41c650SJérôme Duval
6*ba41c650SJérôme Duval The GNU C Library is free software; you can redistribute it and/or
7*ba41c650SJérôme Duval modify it under the terms of the GNU Lesser General Public
8*ba41c650SJérôme Duval License as published by the Free Software Foundation; either
9*ba41c650SJérôme Duval version 2.1 of the License, or (at your option) any later version.
10*ba41c650SJérôme Duval
11*ba41c650SJérôme Duval The GNU C Library is distributed in the hope that it will be useful,
12*ba41c650SJérôme Duval but WITHOUT ANY WARRANTY; without even the implied warranty of
13*ba41c650SJérôme Duval MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14*ba41c650SJérôme Duval Lesser General Public License for more details.
15*ba41c650SJérôme Duval
16*ba41c650SJérôme Duval You should have received a copy of the GNU Lesser General Public
17*ba41c650SJérôme Duval License along with the GNU C Library; if not, write to the Free
18*ba41c650SJérôme Duval Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
19*ba41c650SJérôme Duval 02111-1307 USA. */
20*ba41c650SJérôme Duval
21*ba41c650SJérôme Duval #include <complex.h>
22*ba41c650SJérôme Duval #include <math.h>
23*ba41c650SJérôme Duval
24*ba41c650SJérôme Duval
25*ba41c650SJérôme Duval __complex__ double
__cpow(__complex__ double x,__complex__ double c)26*ba41c650SJérôme Duval __cpow (__complex__ double x, __complex__ double c)
27*ba41c650SJérôme Duval {
28*ba41c650SJérôme Duval return __cexp (c * __clog (x));
29*ba41c650SJérôme Duval }
30*ba41c650SJérôme Duval weak_alias (__cpow, cpow)
31*ba41c650SJérôme Duval #ifdef NO_LONG_DOUBLE
32*ba41c650SJérôme Duval strong_alias (__cpow, __cpowl)
33*ba41c650SJérôme Duval weak_alias (__cpow, cpowl)
34*ba41c650SJérôme Duval #endif
35