How to PowerQuad to implement powf function?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to PowerQuad to implement powf function?

1,155 Views
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 Kudos
Reply
3 Replies

1,117 Views
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 Kudos
Reply

1,129 Views
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 Kudos
Reply

1,125 Views
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 Kudos
Reply