Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!linus!philabs!cmcl2!seismo!brl-tgr!tgr!RCONN@simtel20.arpa From: RCONN@simtel20.arpa (Rick Conn) Newsgroups: net.micro Subject: Re: Arctan approximation for generating pi Message-ID: <1087@brl-tgr.ARPA> Date: Sat, 28-Dec-85 00:06:55 EST Article-I.D.: brl-tgr.1087 Posted: Sat Dec 28 00:06:55 1985 Date-Received: Sat, 28-Dec-85 13:26:19 EST Sender: news@brl-tgr.ARPA Lines: 12 For those who are interested, the math libraries (MLIB.SRC and MLIB2.SRC) in the Ada repository (see pd:) contain many routines, including SIN, COS, EXP, LOG, etc, which are implemented using continued fractions rather than power series. I have run some brief tests of these routines (using a DEC Ada compiler) against the DEC standard math library under VMS, and the results agreed completely in over 99% of my tests, where the remaining tests differed only by a few hundred-thousandths. Since most of the Ada code is simple calculation, you can probably read the code easily whether you know Ada or not. Rick -------