> This might seem waaay OT but there is a PIC in there somewhere. > Can somebody please help this rusted brain: > I've been given information as such: > if x=0, y=0 > x=15, y=0.259 > 30, 0.5 > 45, 0.707 > 60, 0.866 > 75, 0.966 > 90, 1.000 > You will see that while X is linear, Y is not (Log??). With these > information available, how would I calculate Y for all the other values > of X? This is a sine function. Y = sin(X). You can do it on your calculator or look it up in a book of tables. > I want to use it in a lookup table in the PIC. Somewhere I've seen a application that does exactly this to generate a pseudo-sine wave for audio testing. If I can find it I'll post a pointer. .