Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Intel Community
- FPGAs and Programmable Solutions
- FPGA Intellectual Property
- ALTFP_SINCOS - cosine mode

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Altera_Forum

Honored Contributor I

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

02-11-2013
01:51 PM

803 Views

ALTFP_SINCOS - cosine mode

I'm running Quartus 11.0sp1

I think I found an error for the ALTFP_SINCOS megafunction in cosine mode. For negative inputs the result comes out with the wrong sign. Example: cos(-0.1) = -0.995. Since cosine is an even function i.e., cos(x) = cos(-x) it is not that hard to workaround this problem. I have a question about the workaround/fix (Link Copied

1 Reply

Altera_Forum

Honored Contributor I

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

03-03-2017
05:47 PM

29 Views

How do you get 0.1 into ALTFP_SINCOS?

I try it with declaration real rho = 0.1; But ALTFP_SINCOS cannot accept with real number. Thanks for your reading, waiting for your reply!Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

For more complete information about compiler optimizations, see our Optimization Notice.