sine and cosine

BlitzMax Forums/BlitzMax Beginners Area/sine and cosine

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.

Is this a bad time to point out that Sin and Cos aren't discrete functions?


Dont know ;(

It was obviously an important point to make. And one that I did indeed need reminding of.
Note To Self: All numbers on the computer are discrete in nature


If I rephrase it to
There are obviosly reasons not to do it, as you have said, if the range of angles you want is Qusi-continuos rather than discrete or
There are obviosly reasons not to do it, as you have said, if the range of angles you want is convergent with float rather than convergent on whole numbers It would make me feel happier.

I think probably the answer is, given how simple the task is
When the program is finished, make two versions. One with cos/sin directly. and one with lookup tables. And see which is quicker in a real enviroment

Edit: This use of Bold isnt shouting. I admit it looks like shouting, but it was either that or underline. And under line looks too definitive for my liking