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.

[参考译文] TMS320F28035:TMS320F28035:软件库中 arctan 函数的名称是什么? 反正切函数的输入范围是多少? 如果反正切函数输出是按单位? 如果有一些示例说明如何使用反正切函数? 许多

Guru**** 2614265 points


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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/693080/tms320f28035-tms320f28035-what-is-the-name-of-the-arctan-function-in-software-library-what-is-the-input-range-of-the-arctan-function-if-the-arctan-function-output-is-per-unit-if-there-are-some-example-of-how-to-use-the-arctan

器件型号:TMS320F28035
TMS320F28035:软件库中 arctan 函数的名称是什么? 反正切函数的输入范围是多少? 如果反正切函数输出是按单位? 如果有一些示例说明如何使用反正切函数? 非常感谢! 

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

    假设您询问的是 C 运行时支持库。 如果情况不是这样,请告诉我。

    标准 C 函数支持反正切:
    atan()表示 double
    atanf()表示 float
    atnl()表示 long double

    您需要包含头文件 math.h 才能访问这些文件。 在所有情况下、输入范围均为+/-无穷大、输出均以弧度为单位。 例如、请尝试:

    float val =-10.25f;
    易失性浮点 y = 0.0f;

    MAIN ()


    执行{
    Val += 0.25f;
    y = atanf (val);
    } while (val <= 10.0f);

    Y 应该在大约-PI 和+PI 之间变化。

    此致、

    Richard