arctan function does not work in PLCexpresso version 5.2

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

arctan function does not work in PLCexpresso version 5.2

220 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by SD Kumbhar on Mon Apr 07 01:36:05 MST 2014
We are using LPC812 20pin tssop processor.

We are using formula containing multiply, divide, square , sqaure root & arctan fucntions. We found other calculations are correct & givinh OK result however arctan function always returns 0 value.

formala used : x =      arctan( ax /sqrt( pow ( ay,2) + pow(az,2) )

Can somebody suggest any alternate librray function for arctan function which we can use in LPCexpresso ?
0 Kudos
1 Reply

205 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Mon Apr 07 07:54:00 MST 2014
The standard C library function for calculating arc tangents is called atan(), not arctan() !

http://www.cplusplus.com/reference/cmath/atan/

Regards,
LPCXpresso Support
0 Kudos