CMSIS-DSP icon indicating copy to clipboard operation
CMSIS-DSP copied to clipboard

A faster and more accurate sine and cosine function

Open chenzt2020 opened this issue 1 year ago • 1 comments

Can we calculate trigonometric functions using the Remez algorithm? This is faster and more accurate than the table lookup method, and the range of arguments can be [-inf,inf]

Here is an example of fast sine and fast cosine: https://github.com/chenzt2020/foc_learning/blob/main/3.fast_sin/fast_sin.h

benchmark STM32F446 180MHz -Ofast image

chenzt2020 avatar Mar 15 '23 06:03 chenzt2020