Trigonometric functions on embedded system

c, embedded, math, trigonometry

Solution

To calculate a Taylor or Fourier series is always going to be time-consuming.

In an embedded system, you should think about lookup tables.

There might also be interesting information on the 'Net about how Hewlett-Packard optimised such calculations in their early scientific calculators.

I recall seeing such stuff at the time

Problem

`sin` and `cos` functions are slow and need a lot of resources to run on embedded systems. How does one calculate `sin` and `cos` functions in a more resource-saving and faster way?

Original source

Related problems