cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Explorer
Explorer
5,912 Views
Registered: ‎05-21-2009

PowerPC 440 sin-function

Jump to solution

Good day.

 

I'm using a PowerPC 440 on a Virtex-5 FPGA and want to generate a sine wave. In the process I've discovered the "sin"-finction in math.h, but cant seem to get it working correctly. Can anyone please shine some light on this funciton? How does it work? Is it working in radians or degrees?

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Xilinx Employee
Xilinx Employee
7,440 Views
Registered: ‎04-23-2008

Take a peek at the sin man page:

 

"These functions shall compute the sine of their argument x, measured in radians"

 

 

View solution in original post

0 Kudos
4 Replies
Highlighted
Xilinx Employee
Xilinx Employee
7,441 Views
Registered: ‎04-23-2008

Take a peek at the sin man page:

 

"These functions shall compute the sine of their argument x, measured in radians"

 

 

View solution in original post

0 Kudos
Highlighted
Explorer
Explorer
5,889 Views
Registered: ‎05-21-2009

Thanks Brian!

 

Where can I obtain these manuals (for instance the manual for the math-funtions)? I looked on the internet for information on these functions, but was unsure what to look for.

0 Kudos
Highlighted
Xilinx Employee
Xilinx Employee
5,887 Views
Registered: ‎04-23-2008

These are standard C math library functions.  You can view these man pages from your Unix prompt. I.E.

$ man sin

$ man math.h

 

etc...

 

-Brian 

0 Kudos
Highlighted
Explorer
Explorer
5,884 Views
Registered: ‎05-21-2009
Ahh! I see. Thanks again Brian.
0 Kudos