Approximation of Sine function in Integer Forth
|
03-14-2022, 01:16 PM
(This post was last modified: 03-14-2022 01:17 PM by Martin Hepperle.)
Post: #8
|
|||
|
|||
RE: Approximation of Sine function in Integer Forth
For my purpose, Garth's solution is very usable and "good enough" (famous last words ;-)).
It also fits nicely on a single Forth screen, has only a small memory footprint and takes about the same time as my initial, poor approximation. I don't need "absolute" accuracy - in this case I would probably consider something like Cordic and a floating point number representation. In the first update of my PDF document I had Garth's solution overlaid with wrong scaling on the horizontal axis, mapping 0...360 deg to my scale of 0...90 deg. I noticed my mistake and had corrected the document half an hour later, so maybe Thomas downloaded the incorrect, intermediate version? Martin |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)