Newsgroups: comp.os.msdos.djgpp From: moshier AT world DOT std DOT com (Stephen L Moshier) Subject: Re: complex in c (!c++) Message-ID: Organization: The World @ Software Tool & Die References: <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.