Re: Sin & Cos speed worries



"Fred J. Tydeman" <tydeman@xxxxxxxxx> writes:
On Mon, 31 Jul 2006 20:18:34 UTC, rgootee@xxxxxxxxx wrote:

I have recently started work on a project that is VERY focused the
execution time of the algorithms. The lead programmer on said project
has said to minimize "sin,cos,and square-roots" to keep the execution
time low.

How much inaccuracy are you willing to accept for the faster version?

You might be surprised at how inaccurate many of the math libraries
are that ship with compilers. A "C" program to test sin(355.) and the
results can be found in tsin.c on the web page in my signature.
I would be interested in results people get that are not already listed.

sin(355) can be closely approximated by zero. What's
the problem?
.