AnsweredAssumed Answered

Computation with floats

Question asked by obid.matic on Dec 4, 2015
Latest reply on Dec 4, 2015 by Clive One
Hi. I have to do some calculation, where I need to be precise and have to use sine function. I do that calculation only once and speed of execution here is not so critical. So I dccided to use floats (before I had a LUT for sine function and used integers, but was not good enough).

Now, my question is, should I simply include "math.h" library and use a sine function from there, or is there any quicker way to calculate sine with floats. I have STM32F303 uC. Do I have to enable FPU somehow?

Thanks 

Outcomes