请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:TMS320F28335 主题中讨论的其他器件: C2000WARE
如何使用 TMS320F28335推导 CCS 中某些可验证语言的日志10
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推导 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