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.

[参考译文] MSP-IQMATHLIB:关于 IQ 数除法

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/976602/msp-iqmathlib-about-iq-number-division

器件型号:MSP-IQMATHLIB

你(们)好  

我目前正在我的项目中使用 IQMathLib。 我遇到了_IQ29div 问题。

除数 为0.0027313、除数为0.0101318、但输出为0.1347891。

我 测试了另一组数字、0.0148468作为被除数 、0.05696763作为 除数、输出为0.1302892。

输出错误、两个输出都是正确答案的一半。

IQ29div 是否存在任何已知问题?

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

    您好!

    您使用的是哪款 MSP 器件? 分子和分母的 IQ 格式是什么? 它们都是 IQ29吗?

    如果值是预期值的一半(1/2)、那么结果似乎会以某种方式向右移动1位(例如10000b (16d) rsh 1 = 1000b (8d))。 我不确定这是否是库的问题、或者是否存在饱和现象。

    IQ28div 或 IQ30div 会发生这种情况吗?

    此致、

    James