Skip to main content
Visitor II
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

    This topic has been closed for replies.

    2 replies

    Super User
    January 22, 2024

    Sure you can:

    y = a * powf(x, b);

     

    Graduate II
    January 22, 2024

    In C

     

    #include <math.h>

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