This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/TMS320F28335: NAN number handling in atan2 function C RTL

Part Number: TMS320F28335
Other Parts Discussed in Thread: TMS570LS3137

Tool/software: TI C/C++ Compiler

We are using  TMS320F28335 and for SW development CCS(CCSVersion: 6.0.1.00040 ), we have observed peculiar outputs when we use atan2  function. We have checked for the boundary conditions it yields different results. I have given the combination:

TMS320F28335:

Input  x    Input y  Output           

0.0            0.0         0.0

NaN         0.0          0.0  

We have tested the same combination in TMS570LS3137 as well.

TMS570LS3137:

Input  x    Input y  Output           

0.0            0.0         0.0

NaN         0.0          NaN

why there is different result for the same inputs?