Re: Floating point: sine, cosine etc.

From: Jesus Cea <jcea_at_jcea.es>
Date: Thu, 13 Oct 2022 20:50:18 +0200
Message-ID: <e70f42a4-b096-0548-4e11-6ffdab119a6c_at_jcea.es>
On 13/10/22 17:25, ruud_at_baltissen.org wrote:
> If you mean me to calculate these two and then do a division, no sir, to 
> much work.

Doing SIN() and COS() with only a handful of Taylor terms is faster and 
way more precise that doing TAN() with more terms needed to get useful 
precision.

You can write some C/python code for comparison between both approached. 
You could be surprised.


> A bit more down you see the coefficients for tangens but only a few. These are the ones I'm looking for.

In my previous emails I explain how can you get as many taylor terms for 
tangent as you want, but I would advice against that approach to "tan". 
Try sin/cos.

Invest some time to understand CORDIC. It is beautiful and easy when you 
"get it".

-- 
Jesús Cea Avión                         _/_/      _/_/_/        _/_/_/
jcea_at_jcea.es - https://www.jcea.es/    _/_/    _/_/  _/_/    _/_/  _/_/
Twitter: _at_jcea                        _/_/    _/_/          _/_/_/_/_/
jabber / xmpp:jcea_at_jabber.org  _/_/  _/_/    _/_/          _/_/  _/_/
"Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
Received on 2022-10-13 21:00:52

Archive generated by hypermail 2.3.0.