This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * A super simple sin/cos substitute based on taylor sequences | |
| * to avoid importing the math.h | |
| * | |
| * sin x = x - x^3/3! + x^5/5! -x^7/7! ... | |
| * cos x = 1 -x^2/2!+x^4/4!-x^6/6! ... | |
| */ | |
| // #include "math.h" | |
| // #include <zephyr/kernel.h> |