48 double som_r_1d_pas_prevu(
const double*,
int,
double)
50 throw(invalid_argument(
"som_r_1d : r basis not implemented yet !")) ;
58 double som_r_1d_cheb(
const double* ti,
int nr,
double x)
61 const double* pi = ti ;
72 for (i=2; i<nr; i++) {
73 double cheb2 = 2*x* cheb1 - cheb0 ;
88 double som_r_1d_chebp(
const double* ti,
int nr,
double x)
91 const double* pi = ti ;
99 for (i=2; i<2*nr-1; i++) {
100 double cheb2 = 2*x*cheb1 - cheb0 ;
104 resu += (*pi)*cheb2 ;
116 double som_r_1d_chebi(
const double* ti,
int nr,
double x)
119 const double* pi = ti ;
124 resu += (*pi)*cheb1 ;
127 for (i=2; i<2*nr; i++) {
128 double cheb2 = 2*x*cheb1 - cheb0 ;
132 resu += (*pi)*cheb2 ;
143 double som_r_1d_leg(
const double* ti,
const int nr,
double x)
146 const double* pi = ti ;
158 for (i=2; i<nr; i++) {
160 double leg2 = (double(2*i-1)*x* leg1 - double(i-1)*leg0) /
double(i) ;
174 double som_r_1d_legp(
const double* ti,
const int nr,
double x)
177 const double* pi = ti ;
184 for (i=2; i<2*nr-1; i++) {
186 double leg2 = (double(2*i-1)*x* leg1 - double(i-1)*leg0) /
double(i) ;
202 double som_r_1d_legi(
const double* ti,
int nr,
double x)
205 const double* pi = ti ;
212 for (i=2; i<2*nr; i++)
215 double leg2 = (double(2*i-1)*x* leg1 - double(i-1)*leg0) /
double(i) ;
230 double som_r_1d_jaco02(
const double* ti,
int nr,
double x)
233 const double* pi = ti ;
237 double* jaco = jacobi(nr-1,x) ;
238 for (i=0 ; i<nr ; i++) {
239 resu += (*pi) * jaco[i] ;