Unable to calculate inverse tangent of a number

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

Unable to calculate inverse tangent of a number

Jump to solution
2,971 Views
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

Labels (1)
0 Kudos
Reply
1 Solution
2,872 Views
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.

View solution in original post

0 Kudos
Reply
3 Replies
2,873 Views
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 Kudos
Reply
2,872 Views
jmu
Contributor I

Hi Jennie,

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

Sincerely,

Mahendra

0 Kudos
Reply
2,872 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

You are welcome!

Best Regards,

Jennie

0 Kudos
Reply