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.

[参考译文] TMS320F28335:THI 与 math.h 头文件库相关

Guru**** 2586805 points
Other Parts Discussed in Thread: TMS320F28335, C2000WARE

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1235054/tms320f28335-thi-is-related-to-math-h-header-library

器件型号:TMS320F28335
主题中讨论的其他器件: C2000WARE

如何使用 TMS320F28335推导 CCS 中某些可验证语言的日志10

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    https://www.tutorialspoint.com/c_standard_library/c_function_log10.htm

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Sumit,

    F28335不包含 TMU。 但是、它包含 FPU、因此支持我们在 C2000Ware 中提供的 FPUFastRTS 库。 这个快速的数学库有一个 logf ()运算,运行速度比标准的数学库快,但有一定的准确性。

    要计算 log10 (x)、您需要执行 logf (x)/logf (10)。 可以使用 FPUFastRTS 库计算 logf (x)。 1/logf (10)可预定义为一个常数。 因此,您可以使用 logf()运算后跟乘法来获取结果。

    谢谢。

    SIRA