User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







c:complex.h:cexp

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

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
c/complex.h/cexp.txt · Last modified: 2024/02/16 01:06 (external edit)

Impressum Datenschutz