User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







c:complex.h:cexp
click
to support this page (eg 0,42 € or so) Thanks.

cexp

double complex cexp(double complex z);

description of cexp

calculate the complex exponential

#include <stdio.h>
#include <complex.h>
 
int main( void )
{
 
   double complex z=4.2424 + I*(-2.41231);
   double result;
   result = cexp(z);
   printf("cexp(%f + (%f)*I) = %f + (%f)*I\n",creal(z), cimag(z),creal(result),cimag(result));
   return 0;
}

output of cexp c example

  cexp(4.242400 + (-2.412310)*I) = -51.878503 + (0.000000)*I
advertising
c/complex.h/cexp.txt · Last modified: 2013/02/04 01:34 by 158.181.88.241

Impressum