Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site ecsvax.UUCP Path: utzoo!watmath!clyde!burl!ulysses!unc!mcnc!ecsvax!bet From: bet@ecsvax.UUCP (Bennett E. Todd III) Newsgroups: net.math Subject: Program to compute roots of the cubic polynomial Message-ID: <575@ecsvax.UUCP> Date: Tue, 15-Oct-85 14:01:52 EDT Article-I.D.: ecsvax.575 Posted: Tue Oct 15 14:01:52 1985 Date-Received: Thu, 17-Oct-85 00:34:05 EDT Reply-To: bet@ecsvax.UUCP (Bennett E. Todd III) Organization: Duke University Computation Center Lines: 14 I decided to look up the closed form to the cubic, which is indeed in CRC's Standard Math Tables, and implement it. I like C, so I wrote it in C. I commented the code in some detail explaining what I was doing, which is just as well. It turns out the C lack of a complex data type makes this particular application pretty complex, so to speak. You will find the program with explanatory comments in net.sources. Enjoy. -Bennett -- "Hypocrisy is the vaseline of social intercourse." (Who said that?) Bennett Todd -- Duke Computation Center, Durham, NC 27706-7756; (919) 684-3695 UUCP: ...{decvax,seismo,philabs,ihnp4,akgua}!mcnc!ecsvax!duccpc!bet