Date: Mon, 22 Nov 1999 14:47:41 +0100 From: Hans-Bernhard Broeker Message-Id: <199911221347.OAA32411@acp3bf.physik.rwth-aachen.de> To: djgpp AT delorie DOT com Subject: Re: Imaginary Numbers Newsgroups: comp.os.msdos.djgpp Organization: RWTH Aachen, III. physikalisches Institut B X-Newsreader: TIN [version 1.2 PL2] Reply-To: djgpp AT delorie DOT com In article <3838AF63 DOT 6DDD2A0F AT snetch DOT cpg DOT com DOT au> you wrote: > Another way to do it is to have two floating point parts for both > the real and imaginary parts and doing the equations for imaginary > multiplication, etc. yourself. OK, except that doing so, you disregard the works of the gcc makers put into their implementation of '__complex__' datatypes. Check info gcc "C Extensions" "complex" for the details. Granted, you make your code unportable to other compilers than GCC, that way. But it's quite a bit nicer than having to do it all yourself... -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.