Mail Archives: djgpp/1997/03/04/19:45:47
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 -