Unable to calculate inverse tangent of a number

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Unable to calculate inverse tangent of a number

跳至解决方案
2,976 次查看
jmu
Contributor I

Hi,

 

I have a question regarding using functions like Tan inverse CodeWarrior. I am using CodeWarrior version 10.6.4 and the micro controller is part of the MC9S12ZVC family and I am using a USB multilink universal debugger to communicate. 

 

Is there a function I can use for getting the Tan inverse of a number ? I tried using atan and atanf functions but neither of them worked. Inclusion of math.h or GFLIB.h did not help. Is there a way this can be done ? 

 

Sincerely,

Mahendra

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
2,877 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Mahendra

atan and atanf are math functions which need floating lib support.

When creating a new project, choose floating lib support as below.

pastedImage_1.png

Thus the project will link the related floating lib in linker setting

pastedImage_2.png

from my test with above setting, the result is correct. see attached video.

在原帖中查看解决方案

0 项奖励
回复
3 回复数
2,878 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Mahendra

atan and atanf are math functions which need floating lib support.

When creating a new project, choose floating lib support as below.

pastedImage_1.png

Thus the project will link the related floating lib in linker setting

pastedImage_2.png

from my test with above setting, the result is correct. see attached video.

0 项奖励
回复
2,877 次查看
jmu
Contributor I

Hi Jennie,

Thank you for the quick response! That fixed the problem straight away!

Sincerely,

Mahendra

0 项奖励
回复
2,877 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

You are welcome!

Best Regards,

Jennie

0 项奖励
回复