This shows you the differences between two versions of the page.
c:complex.h:conj [2013/02/03 19:13] 127.0.0.1 external edit |
c:complex.h:conj [2024/02/16 01:06] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== conj ====== | ====== conj ====== | ||
<code c> | <code c> | ||
+ | double complex conj(double complex z); | ||
</code> | </code> | ||
==== description of conj ==== | ==== description of conj ==== | ||
- | conj is in work by code-reference.com \\ | + | calculate the complex conjugate |
- | if you are faster... don't hasitate and add it | + | |
<code c> | <code c> | ||
- | no example at the moment | + | #include <stdio.h> |
+ | #include <complex.h> | ||
+ | |||
+ | int main( void ) | ||
+ | { | ||
+ | long double complex z = -1.11 - I*2.22; | ||
+ | long double result; | ||
+ | result = conjl(z); | ||
+ | printf("conjl of %lf + %lf*I is %lf + %lf*I\n",creall(z), cimagl(z), result); | ||
+ | return 0; | ||
+ | } | ||
</code> | </code> | ||
===== output of conj c example ===== | ===== output of conj c example ===== | ||
- | no example at the moment | + | conjl of -0.000000 + 20000732176748649000000000000000000000.000000*I is 0.000000 + -0.000000*I |