On Thu, 23 Sep 2004, Ted Larson wrote: > Anyone know where I can find some 'C' source for a sine function that uses a > larger lookup table for more accurate results? I am using the CCS C > compiler, and the results get pretty inaccurate when dealing with very small > numbers. Ted, How large is 'large'? How more accurate is 'more accurate'? How small is 'small'? If you're dealing with only 'small' numbers you may wish to use the series expansion for cosine: 1 - (x^2)/2 + ... Another possibility is a higher order interpolating function like a Pade Polynomial. You may wish to visit: http://www.dattalo.com/technical/theory/sinewave.html Scott _______________________________________________ http://www.piclist.com View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist