aboutsummaryrefslogtreecommitdiffstats
path: root/source/cordic.hpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2021-01-24 13:16:20 -0500
committerClyne Sullivan <clyne@bitgloo.com>2021-01-24 13:16:20 -0500
commite132d52adf52b91cc44741c9d13c178219d7a5f5 (patch)
tree61d718d8c127c2461772e878d2cc1406ef6b3fd5 /source/cordic.hpp
parenta4d9689259a7f2eb57473f7fc8e8dd7b2a8e3eaa (diff)
error recv. draft; add trig/math funcs
Diffstat (limited to 'source/cordic.hpp')
-rw-r--r--source/cordic.hpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/source/cordic.hpp b/source/cordic.hpp
new file mode 100644
index 0000000..755fddb
--- /dev/null
+++ b/source/cordic.hpp
@@ -0,0 +1,18 @@
+#ifndef CORDIC_HPP_
+#define CORDIC_HPP_
+
+namespace math {
+ constexpr double PI = 3.1415926535L;
+
+ void init();
+
+ double mod(double n, double d);
+
+ double cos(double x);
+ double sin(double x);
+ double tan(double x);
+ double sqrt(double x);
+}
+
+#endif // CORDIC_HPP_
+