Re: Floating point: sine, cosine etc.

From: ruud_at_baltissen.org
Date: Thu, 13 Oct 2022 17:25:32 +0200
Message-ID: <8a2cf4fc7df86e95c3385d6820370d4a_at_baltissen.org>
Hallo Gordon,

> I'd start from "tan(x) = sin(x)/cos(x)" and see what happens when you
> express that division in terms of their expansions, whichever
> expansions you end up using.

If you mean me to calculate these two and then do a division, no sir, to 
much work. Have a look at 
https://en.wikipedia.org/wiki/Trigonometric_functions#Power_series_expansion 
and there you see the functions for sine and cosine I use. A bit more 
down you see the coefficients for tangens but only a few. These are the 
ones I'm looking for. The fastest way using sine, cosine and a lot of 
other functions is creating tables with the needed coefficients for the 
various functions and I only have to apply Horner's method using the 
right coefficients: https://en.wikipedia.org/wiki/Taylor_series


-- 

Kind regards / Met vriendelijke groet, Ruud Baltissen

www.Baltissen.org
Received on 2022-10-13 18:00:10

Archive generated by hypermail 2.3.0.