Re: Best processors for trig?



On 30 Mar 2007 09:59:32 -0700, "Mike Noone" <nleahcim@xxxxxxxxx>
wrote:

Hi - I was just wondering, are there any processors out there that
have been optimized for trig operations? I'm hoping to find a
processor that can do trig ops (sin, cos, tan, asin, acos, atan, etc.)
quickly. The faster the better.

A least for sin/cos you could use the expressions

sin(a+b)=sin(a)cos(b) + cos(a)sin(b)
cos(a+b)=cos(a)cos(b) - sin(a)sin(b)

in which a is the "integer" part and b is the "fractional" part.
sin(a) and cos(a) can easily be evaluated using table look-up,
sin(b)=b when b is expressed in radians and is sufficiently small
compared to a. Thus, the only problem is how to express cos(b), which
is very close to 1.0 anyway.

Paul

.



Relevant Pages

  • Re: Best processors for trig?
    ... processor that can do trig ops (sin, cos, tan, asin, acos, atan, etc.) ... such operations in the single digit microsecond range or less, ... easily be able to trig operations in less then a microsecond. ...
    (comp.arch.embedded)
  • Re: Best processors for trig?
    ... have been optimized for trig operations? ... processor that can do trig ops (sin, cos, tan, asin, acos, atan, etc.) ... I'm looking for floating point values - ... tauno voipio iki fi ...
    (comp.arch.embedded)