cancel
Showing results for 
Search instead for 
Did you mean: 

I would like to use functionalities like sine, cosine etc in my code without using math.h library. Please provide me the solution for this.

Gautham  Y.T
Associate II
 
2 REPLIES 2
AvaTar
Lead

Use the math lib, or implement a table-based interpolation yourself.

Consider an integer-based solution.

You did not even mention the MCU you are working with.

Andrew Neil
Chief II

Why do you want to avoid math.h ?

Have you looked at: https://www.keil.com/pack/doc/CMSIS/DSP/html/group__groupFastMath.html

Did you do any research yourself?

eg, google found this: https://digital.library.unt.edu/ark:/67531/metadc283001/

See also: https://en.wikipedia.org/wiki/CORDIC