/** * This file has no copyright assigned and is placed in the Public Domain. * This file is part of the w64 mingw-runtime package. * No warranty is given; refer to the file DISCLAIMER.PD within this package. */ /* cexpf.c Contributed by Danny Smith 2004-12-24 */ #include #include /* cexp (x + I * y) = exp (x) * cos (y) + I * exp (x) * sin (y) */ float complex cexpf (float complex Z) { float complex Res; double rho = exp (__real__ Z); __real__ Res = rho * cosf(__imag__ Z); __imag__ Res = rho * sinf(__imag__ Z); return Res; }