Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!mgnetp!ihnp4!drutx!houxe!hogpc!houti!ariel!vax135!floyd!cmcl2!seismo!hao!hplabs!sri-unix!mlsmith@NADC.ARPA From: mlsmith@NADC.ARPA@sri-unix.UUCP Newsgroups: net.micro Subject: Re: Implementation of sine function Message-ID: <820@sri-arpa.UUCP> Date: Wed, 13-Jun-84 09:35:11 EDT Article-I.D.: sri-arpa.820 Posted: Wed Jun 13 09:35:11 1984 Date-Received: Fri, 15-Jun-84 02:18:28 EDT Lines: 12 Due to the symmetry of the octants, only 45 degrees need to be put on the table (both sine and cosine). One trick is to make the table non-linear to get more accuracy out of the same size table. BUT that is the main question: how much accuracy is enough? If you want 10 place accuracy a series expansion may be best. If you have a powerful computer iteration is easier to code. One application I had the major requirement was speed of "computation" and I ended up using a 360 entry table to limit that time to a memory access. But unless you have special requirements, why not use the sin and cos in a typical BASIC compiler? mlsmith@NADC.ARPA