cancel
Showing results for 
Search instead for 
Did you mean: 

equation implmentation on STM32F405

cjaya.2
Associate II

I wanted implement  this formula y = a*x^b on the STM32F405 processor. But  can  I do the power multiplication on the STM32F405. Any help on this matter. Thank you

2 REPLIES 2
TDK
Guru

Sure you can:

y = a * powf(x, b);

 

If you feel a post has answered your question, please click "Accept as Solution".

In C

 

#include <math.h>

float x,y,a,b;
y = a * pow(x,b);