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.

Gautham  Y.T
Associate II

Please provide me the solution for this.

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.

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

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.