Re: Best processors for trig?



On Fri, 30 Mar 2007 20:06:57 GMT, Tauno Voipio
<tauno.voipio@xxxxxxxxxxxxx> wrote:

larwe wrote:
On Mar 30, 1:46 pm, Tim Wescott <t...@xxxxxxxxxxxxxxxx> wrote:

A floating point DSP, as noted.

What's the canonical method of doing this? Taylor series
approximations?

Of course, the arguments have to be reduced first to
the range of the period (2 * pi for sin and cos, pi
for tan). The reduced range is often split into some
sub-ranges with different coefficients.

For float (6 digits) the 3 .. 4 order is usually enough, for double,
you may have to calculate to the 6th - 8th degree.

The least-maximum error polynomial for approximation
is obtained by developing the function to a series
of Chebysev polynomials. This method gives less error
than a corresponding Taylor or MacLaurin series.

Taylor series are far too computationally intensive for any practical
purpose, so in practice some kind of polynomial is used.

The trig functions and exponential are quite polynomial-
friendly.

3-4(float) or 6-8 order polynomials are usually sufficient.

The most difficult of the elementary functions
is the logarithm, its Taylor series uses half of an
infinity to converge.

After all, the only real problem with logs is that you must be able to
calculate it in the 1.0 .. 2.0 range, the rest is trivial.

Do you really need anything more than a 6th degree polynomial ?

Paul

.



Relevant Pages

  • Re: tetration and logaritms
    ... and from looking at the first terms of this taylor series we see that we can get series reversion which of course gives exp- 1. ... finally 5/8 and 13/30 in the upper-left corner. ... to find the polynomials in h. ... We simply take the coefficients ...
    (sci.math)
  • Re: C99 float variants of math.h functions
    ... seems likely that the square root implementations on your system ... any polynomial expansion resembles a Taylor series. ... Taylor polynomials, Chebyshev polynomials, continued fraction ...
    (comp.lang.c)
  • Re: How to use floating point in a module?
    ... The Taylor series for the trig functions might be a painfull. ... Chebyshev polynomials are, I believe, pretty ...
    (Linux-Kernel)
  • Re: Lagrange Polynomial, Taylors series, e^ix
    ...   for all integers n ... Given Taylor's polynomials for a function fin ... Ignoring for these purposes issues to do with convergence or non- ... of the Taylor series up to a certain point, ...
    (sci.math)
  • Re: Calculation Of Exponentiated Values--How Is It Done?
    ... Not very useful in practice, ... you can choose any sequence of rationals that ... One of the easier methods to grasp is a Taylor series: ...
    (sci.math)