Re: Sin & Cos speed worries
- From: mojaveg@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx (Everett M. Greene)
- Date: Thu, 10 Aug 2006 08:02:27 PST
"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?
.
- Follow-Ups:
- Re: Sin & Cos speed worries
- From: tsilva
- Re: Sin & Cos speed worries
- References:
- Sin & Cos speed worries
- From: rgootee
- Re: Sin & Cos speed worries
- From: Fred J. Tydeman
- Sin & Cos speed worries
- Prev by Date: Re: Definite integral with huge variations in magnitude
- Next by Date: Re: Definite integral with huge variations in magnitude
- Previous by thread: Re: Sin & Cos speed worries
- Next by thread: Re: Sin & Cos speed worries
- Index(es):