DSPRelated.com
Forums

sin()

Started by zlewko February 10, 2004
Hi,

I'm trying to use a sin function but every way I try to use the sin
function from math.h i get a function has no prototype error. I am
not using the SDK and though this might be the problem so I tried the
same thing in an SDK project and got the same error. Has anyone here
gotten math.h or a sin function for work. The sin function is the
only function I need from math.h so a stand alone function would also
work if anyone had one.

Thanks
Zach



Zack,
 
Use this function:
 
Frac16 tfr16SinPIx (Frac16 x);
 
Note, it is fixed point and that the saturation bit affects the output (I don't remember if is needs to be set or cleared for good results).  This function is documented in section 7.3.6 of the SDK 3.0 users manual.
 
Jacob


From: zlewko [mailto:z...@wpi.edu]
Sent: Tuesday, February 10, 2004 8:13 AM
To: m...@yahoogroups.com
Subject: [motoroladsp] sin()

Hi,

I'm trying to use a sin function but every way I try to use the sin
function from math.h i get a function has no prototype error.  I am
not using the SDK and though this might be the problem so I tried the
same thing in an SDK project and got the same error.  Has anyone here
gotten math.h or a sin function for work.  The sin function is the
only function I need from math.h so a stand alone function would also
work if anyone had one.

Thanks
Zach



_____________________________________
Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer.  You need to do a "reply all" if you want your answer to be distributed to the entire group.

_____________________________________
About this discussion group:

To Join:  m...@yahoogroups.com

To Post:  m...@yahoogroups.com

To Leave: m...@yahoogroups.com

Archives: http://www.yahoogroups.com/group/motoroladsp

More Groups: http://www.dsprelated.com/groups.php3