|
|
| more useful options | |
| PerlMonks |
Re: computational efficiencyby Perlbotics (Monsignor) |
| on Oct 04, 2011 at 18:15 UTC ( #929627=note: print w/ replies, xml ) | Need Help?? |
|
If you have got a limited set of angles - or it is allowed to quantise them - I would suggest to cache the computed values or use a pre-computed table of all sines/cosines. E.g. 0.00-359.99 results in a table holding 72000 values - quite feasible.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||