Search code examples
cembeddedgnulibm

Libm has no trigonometric functions


The libmath on a particular embedded system does not have functions like sin and cos due to missing fp-operation unit.

Is there some library around that provides the functions via look-up tables? I do not actually need 100% reliable values.


Solution

  • Depending on the needed requirements for speed and precision, maybe you could create the functions needed by a simple lookup table, by writing a program to create the lookup table. Or use CORDIC.