Approximation of Sine function in Integer Forth
|
03-13-2022, 10:00 AM
(This post was last modified: 03-13-2022 10:53 AM by Martin Hepperle.)
Post: #4
|
|||
|
|||
RE: Approximation of Sine function in Integer Forth
Thank you for your comments!
For starting, I have implemented Garth's Forth code and added the result to the deviation plot. The overall deviation is much lower than my piecewise approximation but due to exploiting the full range for scaling, Garth's result is also much smoother. [edit: the attachment in my initial post was updated accordingly] [the only change I made to Garth's code was to replace -1 SHIFT by 1 RSHIFT in the word U*/_RND as my Forth only has RSHIFT and LSHIFT] Martin |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)