0 Members and 2 Guests are viewing this topic.
:For(A,0,255):Line(47,31,sin(A)//8+47,31-cos(A)//8):DispGraph:End
So if I inflate all my numbers by a factor of 128, then I could take the sine of 32/45's of whatever degree measure and it would be fine then, right?
Wait, shouldn't it be 32/45 For example, 90 degrees times 32/45 = 64, which I think corresponds correctly to a period of 256 whereas 90 degrees times 45/32 is 126.5625...
Wait, the output-ed value is only 1 byte?
If you need really accurate sine and cosine routines, might I suggest this?