21 void Pmm_L2(
const int m,
double* eval_points,
const int n,
double* result) {
22 double normed_coeff = sqrt(m + 0.5);
24 for (
int i = 0; i < m; ++i)
25 normed_coeff *= sqrt((m - (i / 2.)) / ((
double)m - i));
28 normed_coeff *= pow(2., -m / 2.);
32 for (
int i = 0; i < n; ++i)
33 result[i] = normed_coeff * pow(sin(eval_points[i]), m);