Post Reply 
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
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Approximation of Sine function in Integer Forth - Martin Hepperle - 03-14-2022 01:16 PM



User(s) browsing this thread: 1 Guest(s)