User Tools

Site Tools


c:complex.h:cpow

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 [2024/02/16 01:06] (current)
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
  

on the occasion of the current invasion of Russia in Ukraine

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

Impressum Datenschutz