Skip to main content
cjaya.2
Associate III
January 22, 2024
Question

equation implmentation on STM32F405

  • January 22, 2024
  • 2 replies
  • 687 views

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

TDK
Super User
January 22, 2024

Sure you can:

y = a * powf(x, b);

 

"If you feel a post has answered your question, please click ""Accept as Solution""."
Andrei Chichak
Lead
January 22, 2024

In C

 

#include <math.h>

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