www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/01/08:55:40

Date: Sat, 1 Mar 1997 02:58:05 +0000 ( )
From: "Gurunandan R. Bhat" <grbhat AT unigoa DOT ernet DOT in>
To: djgpp AT delorie DOT com
Subject: complex in c (!c++)
Message-Id: <Pine.LNX.3.91.970301025205.7122A-100000@aditya.unigoa.ernet.in>
Mime-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019