arctan function does not work in PLCexpresso version 5.2

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

arctan function does not work in PLCexpresso version 5.2

711件の閲覧回数
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 件の賞賛
返信
1 返信

696件の閲覧回数
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 件の賞賛
返信