G
Gerald I. evenden
I have found that with the Gnu compiler that undocumented output
of a "double comple" value can be successfully performed by:
double complex v;
printf("%g %gi\n",v);
which will print the real and imaginary parts of "v."
However, on input I find no equivalent operation that will
work.
I on forced into reading into two temporary type doubles and
then assigning them to the real and imaginary parts of v??
Harbison & Steele (fifth) are limited on complex documentation.
Am I missing something?
Thanks.
of a "double comple" value can be successfully performed by:
double complex v;
printf("%g %gi\n",v);
which will print the real and imaginary parts of "v."
However, on input I find no equivalent operation that will
work.
I on forced into reading into two temporary type doubles and
then assigning them to the real and imaginary parts of v??
Harbison & Steele (fifth) are limited on complex documentation.
Am I missing something?
Thanks.