10 inline constexpr double PI = M_PI;
14 return (n == 1 || n == 0) ? 1 :
factorial(n - 1) * n;
17 inline const size_t nChoosek(
size_t n,
size_t k)
33 for (
size_t i = 2;
i <= k; ++
i)
35 result *= (n -
i + 1);
44 return (
T(0) < val) - (val <
T(0));
50 inline double atan2(
double y,
double x,
int branch = 0)
52 double val = (((x != 0) || (y != 0)) ? std::atan2(y, x) : 0.0);
66 else if ((y == 0) && (x < 0))
Compute max and min eigenvalues of all matrices for i
Definition compute_eigs.m:5
if(strcmp(field, 'real')) % real valued entries T
Definition mmread.m:93
const int sgn(T val)
Definition math.hpp:42
double atan2(double y, double x, int branch=0)
Definition math.hpp:50
const size_t nChoosek(size_t n, size_t k)
Definition math.hpp:17
const size_t factorial(size_t n)
Definition math.hpp:12
constexpr double PI
Free math functions and global variables ///.
Definition math.hpp:10