delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/04/19:45:47

Newsgroups: comp.os.msdos.djgpp
From: moshier AT world DOT std DOT com (Stephen L Moshier)
Subject: Re: complex in c (!c++)
Message-ID: <E6JKwM.96t@world.std.com>
Organization: The World @ Software Tool & Die
References: <Pine DOT LNX DOT 3 DOT 91 DOT 970301025205 DOT 7122A-100000 AT aditya DOT unigoa DOT ernet DOT in> <5fdl9h$m70 AT freenet-news DOT carleton DOT ca>
Date: Tue, 4 Mar 1997 23:21:58 GMT
Lines: 15
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Paul Derbyshire (ao950 AT FreeNet DOT Carleton DOT CA) wrote:


: Someone should write a library for this, implementing
: log,sin,cos,exp,tan,asin,acos,atan,hyperbolic all of the above, sqrt, sqr,
: raisedto, and so on.

The new C language standard in development, C9X, specifies complex data
types, a complex.h header, and a standard function library.  GCC can
do the complex types.  An implementation of the header and function library
for GCC can be obtained from this location --
  ftp://ftp.std.com/pub/astronomy/cephes/c9x-complex.zip

The function names, by the way, are not overloaded as they would be
in C++.  You write "clogf" for example, meaning float precision complex log.

- Raw text -


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