Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A faster and more accurate sine and cosine function #97

Open
chenzt2020 opened this issue Mar 15, 2023 · 0 comments
Open

A faster and more accurate sine and cosine function #97

chenzt2020 opened this issue Mar 15, 2023 · 0 comments
Labels
future Future improvements

Comments

@chenzt2020
Copy link

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

@christophe0606 christophe0606 added the review Under review label Mar 15, 2023
@christophe0606 christophe0606 added future Future improvements and removed review Under review labels Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
future Future improvements
Projects
None yet
Development

No branches or pull requests

2 participants