Re: Floating point: sine, cosine etc.

From: Michal Pleban <lists_at_michau.name>
Date: Fri, 30 Sep 2022 14:04:16 +0200
Message-ID: <012d9246-3f73-e0e2-2db7-564dfb37218b_at_michau.name>
David Roberts wrote on 29.09.2022 22:28:

>  From what I remember, any continuous function can be expressed as a 
> power series. This should, therefore, also be possible for LN and LOG as 
> well as the trigonometric and hyperbolic functions etc.

That is true, but the problem is how many steps you may need to 
approximate the function with desired accuracy. For SIN(X), which always 
returns a value from the range [-1; 1] it's around a dozen steps; for 
unbounded functions like LOG(X) you may need dozens or hundreds of steps 
which would render this method unpractical.
Regards,Michau.
Received on 2022-09-30 15:00:04

Archive generated by hypermail 2.3.0.