View Single Post
Old 09 August 2018, 17:07   #3
deimos
It's coming back!
 
deimos's Avatar
 
Join Date: Jul 2018
Location: comp.sys.amiga
Posts: 762
Quote:
Originally Posted by AChristian View Post
how are you doing the calculations that involve sin cos and pi?
using lookup tables?
Yes, lookup tables:

Code:
WORD SinTable_14[2048] = {
    0x0000, 0x0032, 0x0064, 0x0096, 0x00c9, 0x00fb, 0x012d, 0x015f, 
    0x0192, 0x01c4, 0x01f6, 0x0228, 0x025b, 0x028d, 0x02bf, 0x02f1, 
    0x0323, 0x0356, 0x0388, 0x03ba, 0x03ec, 0x041e, 0x0451, 0x0483, 
    0x04b5, 0x04e7, 0x0519, 0x054b, 0x057d, 0x05af, 0x05e1, 0x0613, 
    0x0645, 0x0677, 0x06a9, 0x06db, 0x070d, 0x073f, 0x0771, 0x07a3, 
    0x07d5, 0x0807, 0x0839, 0x086b, 0x089c, 0x08ce, 0x0900, 0x0932, ...
deimos is offline  
 
Page generated in 0.07487 seconds with 11 queries