C2000 Arctangent IQN
四象限反正切
描述
反正切 IQN 模块计算 IQ 数输入的四象限反正切值,并生成 IQ 数输出。
注意
该模块的实现过程中,在代码生成期间不会调用相应的 Texas Instruments® 库函数。Texas Instruments 函数使用全局 Q 设置,而该模块使用的 MathWorks® 代码根据模块输入动态调整 Q 格式。有关更多信息,请参阅Using the IQmath Library。
参数
- 函数
要计算的反正切类型:
atan2 - 计算四象限反正切值,输出以弧度表示,取值范围为 -pi 到 +pi。
atan2PU - 计算单位四象限反正切值。如果
atan2(B,A)大于或等于 0,则atan2PU(B,A) = atan2(B,A)/2*pi。否则,atan2PU(B,A) = atan2(B,A)/2*pi+1。输出结果以单位弧度表示,取值范围从 0 到 2π 弧度。
注意
Arctangent IQN 模块的输入顺序符合 Texas Instruments 约定,参量'A' 在顶部,'B' 在底部。
参考资料
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).
另请参阅
C2000 Absolute IQN、C2000 Division IQN、C2000 Float to IQN、C2000 Fractional part IQN、C2000 Fractional part IQN x int32、C2000 Integer part IQN、C2000 Integer part IQN x int32、C2000 IQN to Float、C2000 IQN x int32、C2000 IQN x IQN、C2000 IQN1 to IQN2、C2000 IQN1 x IQN2、C2000 Magnitude IQN、C2000 Saturate IQN、C2000 Square Root IQN、C2000 Trig Fcn IQN