11 void PDA(
double *,
double *,
double *,
int &);
13 void PDA(
double *we,
double *vi,
double *mom,
int &n)
19 double p[2*n+1][2*n+1];
34 norm_mom[i] = mom[i]/(fmax(mom[0],1.0e-10));
42 p[i][1] = pow(-1,
double (i))*norm_mom[i];
48 for(i=0;i<2*n+2-j;i++)
50 p[i][j] = p[0][j-1]*p[i+1][j-2] - p[0][j-2]*p[i+1][j-1];
63 if(p[0][i]*p[0][i-1]>0)
65 zeta[i] = p[0][i+1]/(p[0][i]*p[0][i-1]);
75 double bb[n-1], cc[n-1];
84 aa[i-1]=zeta[2*i-1]+zeta[2*i-2];
89 bb[i-1]=zeta[2*i]*zeta[2*i-1];
94 cc[i-1]= sqrt(fabs(bb[i-1]));
112 dsteqr_(choice,&n,aa,cc,&evec[0][0],&n,work,&info);
126 we[j]=mom[0]*pow(evec[j][0],2);
void PDA(double *, double *, double *, int &)