How to PowerQuad to implement powf function?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to PowerQuad to implement powf function?

1,183件の閲覧回数
Amendes
Contributor I

Hi,

Powerquad has the functions: ln(x) e^(x) and e^(-x). So I suppose it is possible to implement the powf function using Powerquad, I found it strange that NXP did not make a macro of it in the Powerquad API or commented on this possibility in the application note. Are there any restrictions on the range of values of x that make it impossible to implement the powf function using powerquad?

0 件の賞賛
返信
3 返答(返信)

1,145件の閲覧回数
frank_m
Senior Contributor III

The (vendor-independant) ARM DSP-Lib used to provide an implementation.
Have you checked ?

It is a while since I worked with it.

0 件の賞賛
返信

1,157件の閲覧回数
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @Amendes,

PowerQuad specializes in matrix operations, FFT, convolutions and more complex algorithms for Signal Processing.

Currently there is no implementation plans for the pow and powf functions in PowerQuad. I will ask with the development team for the compatibility with both functions.

The library "math.h", however, supports both pow and powf if you need to implement them in a project.

Best regards, Julian

0 件の賞賛
返信

1,153件の閲覧回数
Amendes
Contributor I

Hi Julian,

I don't expect powerquad to be able to do the powf function directly. I didn't understand why NXP didn't create an API to do powf using ln(x) and e^x. I got a LPC55S69 kit and tested these functions, and I noticed that the only limitation is in the function e^(x) , where x cannot be too big, so that e^(x) is bigger than 2^32. Even so, it is very impressive

Then it is possible to implement powf, with the limitation that x^y is less than 2^32.  

0 件の賞賛
返信