Hi Mahendra
atan and atanf are math functions which need floating lib support.
When creating a new project, choose floating lib support as below.

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

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