Date: Tue, 4 Mar 1997 18:26:20 +0000 ( ) From: "Gurunandan R. Bhat" To: Beautiful Savior Lutheran Church Cc: djgpp AT delorie DOT com Subject: Re: complex in c (!c++) In-Reply-To: <5finhk$q39@news.epcc.edu> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 5 Mar 1997, Beautiful Savior Lutheran Church wrote: > 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. > > These all exist in two versions. The libc.a versions, which are somewhat > slow and don't follow ANSI 100%, and the libm.a (the MATH library) > versions, which are optimized and 100% ANSI. If you didn't know these > functions already existed, I highly recommend reading a book on the ANSI > library. methinks, he meant: write these functions so that they work for type __complex__. the libc versions, work for floats/doubles not for __complex__. regards