请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:TMS320F280025 您好、香榭丽舍
我们是否应该有用于计算的 F28002x 库演示代码、例如立方体根、第四根、第五根等? 谢谢!
此致、
Linda
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.
您好、香榭丽舍
我们是否应该有用于计算的 F28002x 库演示代码、例如立方体根、第四根、第五根等? 谢谢!
此致、
Linda
Linda、
您可以使用 LOG2F32和 IEXP2F32指令来完成此操作。
例如、假设 x = y ^ 1/3、然后 log2 (x)= 1/3 * log2 (y)。 Log2 (y)可使用 LOG2F32指令计算、而3除法可使用 DIVF32指令计算。 然后、可使用 IEXP2F32指令、后跟另一个 DIVF32指令来计算倒数日志、以获得倒数。
第四个根目录会更简单、因为您只需使用 SQRTF32指令两次。
谢谢、
Sira