User Tools

Site Tools


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

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

c:complex.h:cpow [2013/02/03 19:13]
127.0.0.1 external edit
c:complex.h:cpow [2013/02/04 12:42] (current)
158.181.88.241
Line 2: Line 2:
 <code c> <code c>
  
 +double complex cpow(double complex x, double complex y);
 </code> </code>
  
 ==== description of cpow ==== ==== description of cpow ====
-cpow is in work by code-reference.com \\  +calculate the complex power
-if you are faster... don't hasitate and add it+
  
 <code c> <code c>
-no example at the moment+#include <complex.h> 
 +#include <stdio.h> 
 + 
 +int main(void) 
 +
 +   double complex zd= (double complex) -4.2 + I*4.2; 
 +   double zpowd=(double complex) (long double complex)42.0; 
 +   double result; 
 + 
 +   result = cpow(zd,zpowd); 
 +   printf("cpow(%f + I*%f,%f + I*%f) = %f\n",creal(zd), cimag(zd), creal(zpowd), cimag(zpowd), result); 
 +   return 0; 
 +
 </code> </code>
  
 ===== output of cpow c example ===== ===== output of cpow c example =====
-    no example at the moment+    cpow(-4.200000 + I*4.200000,42.000000 + I*0.000000) = 0.000000
  
advertising
c/complex.h/cpow.txt · Last modified: 2013/02/04 12:42 by 158.181.88.241

Impressum