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.
在使用CLAMATH库进行计算时,CLAcos与CLAsin函数计算错误,CLAcos(0.0001f)的计算结果为+inf,CLAcos(0.1f)与CLAcos(1.0f)与CLAcos(10.0f)的计算结果为0.0;CLAsin(0.1f)与CLAsin(1.0f)的计算结果为-inf,CLAsin(0.0001f)的计算结果为+inf;而在CLA中普通的加、减、乘以及CLAsqrt,CLAdiv计算结果正确,以上结果都是在仿真器调试中在Expressions中观察到的。CLAcos.asm,CLAsin.asm,CLAsqrt.asm等asm文件是放在相同的位置。
我觉得这种计算错误可能是由多种原因造成的。
是的,我也是这样认为的。若是可以的话,建议您将代码移植到一个新的工程内重新编译,或者直接在TI例程上进行修改(直接修改例程中的CLAMATH_ROOT,而不是添加)