Mail Archives: djgpp/1997/03/01/08:55:40
greetings,
while i have used the Complex class in c++, i was pleasantly
surprised to see that it is implemented in c as well (info gcc (c
extensions)). however, small sample programs with this yield wrong
answers for example
....
__complex__ z;
z = 0.0 + 0.7fi;
.....
zz = log(z);
.....
gives a wrong zz. i would be grateful if users of __complex__ in c could
share their experience on this. would it correct to conclude that while
simple algebraic manipulations are implemented, math functions are not?
with warmest regards
gurunandan
- Raw text -