Path: utzoo!utgpu!watmath!clyde!att!alberta!myrias!cg From: cg@myrias.UUCP (Chris Gray) Newsgroups: comp.sys.amiga Subject: Re: Complex Numbers in C Summary: Draco has them Message-ID: <759@myrias.UUCP> Date: 10 Jan 89 23:39:24 GMT References: <8166@orstcs.CS.ORST.EDU> Organization: Myrias Research Corporation Lines: 27 In article <8166@orstcs.CS.ORST.EDU> usenet@orstcs.CS.ORST.EDU (Usenet programs owner) writes: > >Are there any library functions out there for dealing with complex math, >or will I end up writing them all myself? Ugh! (That is the one thing >FORTRAN has going for it.) I'm looking for C libraries.... >Thnx, > Rolf, With no fancy sigs yet... In order to test out the "operator type" facility in Draco V1.2, I implemented a complex number type. A friend here, Don Reble, did some of the complex trancendental functions for me. With it, you can do things like complex a, b; readln(a, b); a := a * b; writeln("a = ", a, "b * 3 = ", b * complex(3.0, 0.0)); etc. This new version should be out this month (probably on Compu$erve as well as sending it to Fred Fish) - there is only one thing left on my list of "things to do before release". The full source for the complex number package will be included. -- Chris Gray Myrias Research, Edmonton +1 403 428 1616 {uunet!mnetor,ubc-vision,watmath,vax135}!alberta!myrias!cg