Date: Sat, 1 Mar 1997 02:58:05 +0000 ( ) From: "Gurunandan R. Bhat" To: djgpp AT delorie DOT com Subject: complex in c (!c++) Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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