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.

[参考译文] CCS/TMS320F28377S:CCS

Guru**** 2468610 points


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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/938409/ccs-tms320f28377s-ccs

器件型号:TMS320F28377S

工具/软件:Code Composer Studio

您好!

我可以在编码中实现'ln'(自然对数)吗?

我正在使用 TMS320F28377。 我将在 CCS Studio 中编写代码。

包括  使用 ln()或类似类型的函数可以实现这一目的吗?

任何建议都将大有帮助。

谢谢、

Manish。

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

    Manish、您好!

    我认为您应该使用 log()来计算自然对数。

    请参阅 math.h 头文件。

    C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/include/math.h

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

    谢谢 Santosh、

    我可能需要编辑我的问题。

    您是否建议包括这些内容 在程序中使用"log()"函数将为我提供作为参数的数字的自然日志?

    此致、

    Manish。