aboutsummaryrefslogtreecommitdiffstats
path: root/source/cordic.hpp
blob: 5c52fe4856344d77f4f7c952cffea81f6473cb07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef CORDIC_HPP_
#define CORDIC_HPP_

namespace cordic {
    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);
}

#endif // CORDIC_HPP_