CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Sine lookup table

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
ryan.reeve



Joined: 23 Jul 2006
Posts: 20

View user's profile Send private message

Sine lookup table
PostPosted: Sat Apr 26, 2008 5:38 am     Reply with quote

Regarding the sine lookup table given in the examples. I am confused how this was generated and how to get the value sine from this table.
The sine of 0 is 0 but value at subscript 0 of the table is 128 ?
How to lookup the sine of 45 for example ?
RLScott



Joined: 10 Jul 2007
Posts: 465

View user's profile Send private message

Re: Sine lookup table
PostPosted: Sat Apr 26, 2008 4:04 pm     Reply with quote

ryan.reeve wrote:
Regarding the sine lookup table given in the examples. I am confused how this was generated and how to get the value sine from this table.
The sine of 0 is 0 but value at subscript 0 of the table is 128 ?
How to lookup the sine of 45 for example ?

I don't know what examples you mean. But if sin(0) = 128, then perhaps the table is interpretted as unsigned numbers that are offset by 128.

Robert Scott
Real-Time Specialties
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group