Trig Functions
Here is a utility program for the Propeller that produces trigonometric functions for all angles from 0 to 90 degrees.· The program is menu-driven and very easy to run.· When an angle is entered, the screen displays sine, cosine and tangent.· The attached .zip file contains the program and all objects used by the program.
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Yesterday is history, tomorrow is a mystery, and today is a gift.
That is why they call it the present.
Don't have VGA?
Newzed@aol.com
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Yesterday is history, tomorrow is a mystery, and today is a gift.
That is why they call it the present.
Don't have VGA?
Newzed@aol.com
zip
![](/plugins/FileUpload/images/file.png)
34K
Comments
From page 423...
Sine Table ($E000-$F001)
The sine table provides 2,049 unsigned 16-bit sine samples spanning from 0° to 90°,
inclusively (0.0439° resolution).
A small amount of assembly code can mirror and flip the sine table samples to create a fullcycle
sine/cosine lookup routine which has 13-bit angle resolution and 17-bit sample
I haven't tried to do this yet, but you should be able to lookup the values from spin too.