eSDK: math.h

Discussion about Parallella (and Epiphany) Software Development

Moderators: amylaar, jeremybennett, simoncook

eSDK: math.h

Postby gordon » Fri Jun 09, 2017 6:19 am

Is there any extra commands to be included in the build file apart from -lm to access the math.h library. Because when I compute cos of an angle and then equate the negative value of it to a float variable it gives me 0.000000. Or should be assigning the value in any other way?
gordon
 
Posts: 24
Joined: Mon May 29, 2017 10:37 am

Re: eSDK: math.h

Postby olajep » Tue Jun 20, 2017 4:35 pm

gordon wrote:Is there any extra commands to be included in the build file apart from -lm to access the math.h library. Because when I compute cos of an angle and then equate the negative value of it to a float variable it gives me 0.000000. Or should be assigning the value in any other way?

Some example code would be helpful

// Ola
_start = 266470723;
olajep
 
Posts: 139
Joined: Mon Dec 17, 2012 3:24 am
Location: Sweden


Return to Programming Q & A

Who is online

Users browsing this forum: No registered users and 2 guests