Sin/Cos Lookup Tables

Blitz3D Forums/Blitz3D Programming/Sin/Cos Lookup Tables

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

@semar:
Another option here is to create pseudo-Sin functions from a McLaurin-Taylor expansion series. Normally this is summed to an infinite number of terms, but can be reasonably approximated with only 5 - 10 terms, depending on the accuracy required...



This involves calcualtions of powers and of factorials (big hits on processor) but that makes them perfect for storing in a lookup table rather than constant calculation. And since you are controlling the accuracy by choosing the number of terms I would assume they will be constant across processors {unless the power calculations for floats give different answers :-( }