View Single Post
  #4   Spotlight this post!  
Unread 03-08-2010, 21:15
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,077
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Is the crio powerful enough?

Quote:
If you are using too much trig processing, then you could always use a lookup table.
Or you could use a polynomial approximation.

You can get a very good approximation to the sine curve from zero to pi/2 (which is all you need to construct the entire curve) with only three multiplies and three adds:

sin(x) ~ -.0017 + x*(1.027 - x*(.0729 + x*(.1116)))


~

Last edited by Ether : 03-08-2010 at 21:21.