主要内容

本页采用了机器翻译。点击此处可查看英文原文。

C2000 Trig Fcn IQN

IQ 数的正弦、余弦或反正切值

描述

该模块计算基本三角函数,并将结果以 IQ 数的形式返回。_IQsinPU_IQcosPU 的有效 Q 值为 1 到 30。对于其他所有情况,有效的 Q 值范围为 1 到 29。

注意

该模块的实现过程中,在代码生成期间不会调用相应的 Texas Instruments® 库函数。TI 函数使用全局 Q 设置,而该模块使用的 MathWorks® 代码根据模块输入动态调整 Q 格式。有关详细信息,请参阅Using the IQmath Library

  • C2000 Trig Fcn IQN block

参数

Function

要计算的三角函数类型:

  • _IQsin — 计算正弦值 (sin(A)),其中 A 以弧度为单位。

  • _IQsinPU — 计算单位弧度正弦值 (sin(2*pi*A)),其中 A 为单位弧度。

  • _IQcos — 计算余弦 (cos(A)),其中 A 以弧度为单位。

  • _IQcosPU — 计算单位余弦值 (cos(2*pi*A)),其中 A 为单位弧度。

参考资料

For detailed information on the IQmath library, see the user's guide for the C28x IQmath Library - A Virtual Floating Point Engine, Literature Number SPRC087, available at the Texas Instruments Web site.The user's guide is included in the zip file download that also contains the IQmath library (registration required).