Dear all: The command
creal(cpow(1.+I,I)) using complex arithmetic produces the double 0. Presently, I have no other explanation for this as assuming that this is a result of a bug in gcc 4.0.0 on Mac OSX, XCode. I have now downloaded the version gcc 4.0.1, and suddenly, the real part is no longer 0. It could be that this bug has been fixed. But now, the call of creal such as printf("\n %f",creal(cpow(I,I))); produces segmentation faults, and printf("\n %f %f", creal(zz),creal(zz)); for a complex number zz the values 0.000000 nan Why nan, and why two different values for the same thing? Is there a systematic problem with creal in particular and the complex type in general? All the best, Jens -- Summary: Problems with creal in gcc 4.0.0 and 4.0.1 Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jense at ic dot ac dot uk http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27267