UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Participant pavel47
Participant
6,332 Views
Registered: ‎10-31-2011

SIN, COS, ATAN in MicroBlaze

Jump to solution

Hello,

 

Does MicroBlaze support trigonometric (SIN, COS, ATAN) and irrational (EXP, LOG, SQRT) function realization ?

If yes, where can I find examples, tutorials ...

 

Thanks in advance,

 

Pavel.

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Contributor
Contributor
8,276 Views
Registered: ‎02-27-2008

Re: SIN, COS, ATAN in MicroBlaze

Jump to solution

Yes. The standard C library has such functions. The standard C library is included to your project as soon as you include  #include <math.h> in your code.

 

 

View solution in original post

0 Kudos
6 Replies
Highlighted
Contributor
Contributor
8,277 Views
Registered: ‎02-27-2008

Re: SIN, COS, ATAN in MicroBlaze

Jump to solution

Yes. The standard C library has such functions. The standard C library is included to your project as soon as you include  #include <math.h> in your code.

 

 

View solution in original post

0 Kudos
Participant pavel47
Participant
6,311 Views
Registered: ‎10-31-2011

Re: SIN, COS, ATAN in MicroBlaze

Jump to solution

Ok, thanks

0 Kudos
6,234 Views
Registered: ‎07-06-2011

Re: SIN, COS, ATAN in MicroBlaze

Jump to solution

sir the atanf function in the microblaze is not working properly and giving errenous results ......how can i change it?

0 Kudos
Teacher rcingham
Teacher
6,226 Views
Registered: ‎09-09-2010

Re: SIN, COS, ATAN in MicroBlaze

Jump to solution
Suggestion:
post some examples, including what you think the return values should be.

------------------------------------------
"If it don't work in simulation, it won't work on the board."
0 Kudos
6,220 Views
Registered: ‎07-06-2011

Re: SIN, COS, ATAN in MicroBlaze

Jump to solution

to be prescise ..... i have created a five microblaze processor system and th atanf function works properly in one of my processor and not working in the other

 

eg

atanf(variable)......or atanf(.8)=-.6234....... 

0 Kudos
Teacher rcingham
Teacher
6,214 Views
Registered: ‎09-09-2010

Re: SIN, COS, ATAN in MicroBlaze

Jump to solution
Does it fail the same way in all the other 4?

------------------------------------------
"If it don't work in simulation, it won't work on the board."
0 Kudos