1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 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_