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: <>
Mime-Version: 1.0

	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

- Raw text -

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