Floating point: sine, cosine etc.

From: ruud_at_baltissen.org
Date: Fri, 23 Sep 2022 22:01:21 +0200
Message-ID: <cf70a9d9c6c145096a9a7ec0fce65c96_at_baltissen.org>
Hallo allemaal,


I'm still busy with creating Floating Point routines. To refresh your 
memory: I'm busy writing my own OS and Basic for 8088 machines and my 
own Pascal version. The last one can compile code into executables for 
the 8088 and the C64, for example. But I must be able to work with 
Floating Point numbers in Basic and in Pascal. For the C64 that is not a 
problem, I can use the mathematical routines of C64's Basic. But for the 
8088..... Oh, I almost forgot: for a stand-alone 8088, thus WITHOUt its 
co-processor, the 8087.

In short: I had to invent the wheel again how to convert an ASCII string 
into FP and vice versa and it still isn't completely finished. For both 
conversions I could find literature and examples but so far I havent 
found anything on FP in combination with sine, cosine, tangens. When 
using a 80x87, the sky is the limit.
On Wikipedia I found something: 
https://en.wikipedia.org/wiki/Sine_and_cosine#Series_definitions . But I 
did not know what to think of it, technically spoken I could turn these 
formulas into code but how cycle hungry would such a solution be? So I 
turned to the source code of C64's Basic and ended up with polynomes. 
Difficult stuff, I must say.

Now my question: is there anybody here who knows more of the ins and 
outs of these polynomes?

Many thanks in advance?


-- 

Kind regards / Met vriendelijke groet, Ruud Baltissen

www.Baltissen.org
Received on 2022-09-23 23:00:03

Archive generated by hypermail 2.3.0.