88 #include "graphique.h" 95 void des_coef_xi(
const Valeur& uu,
int l,
int k,
int j,
double pzero,
96 const char* nomy,
const char* title,
const char* device,
97 int newgraph,
int nxpage,
int nypage) {
99 assert(uu.get_etat() != ETATNONDEF) ;
102 int nr = uu.get_mg()->get_nr(l) ;
104 double* cf =
new double[nr] ;
108 if (uu.get_etat() == ETATZERO) {
109 for (
int i=0; i<nr; i++) {
114 assert(uu.get_etat() == ETATQCQ) ;
115 for (
int i=0; i<nr; i++) {
116 cf[i] = (*(uu.c_cf))(l, k, j, i) ;
120 const char* nomx =
"i" ;
124 ostringstream str_tit1 ;
125 str_tit1 <<
"\\gc coef. for k=" << k <<
", j=" << j <<
" (domain " 127 title1 = str_tit1.str() ;
134 ostringstream str_nomy ;
135 str_nomy <<
"log| c\\d" << k <<
',' << j <<
",i\\u |" ;
136 nomy1 = str_nomy.str() ;
142 des_coef(cf, nr, pzero, nomx, nomy1.c_str(), title1.c_str(), device, newgraph,
153 void des_coef_theta(
const Valeur& uu,
int l,
int k,
int i,
double pzero,
154 const char* nomy,
const char* title,
const char* device,
155 int newgraph,
int nxpage,
int nypage) {
157 assert(uu.get_etat() != ETATNONDEF) ;
160 int nt = uu.get_mg()->get_nt(l) ;
162 double* cf =
new double[nt] ;
166 if (uu.get_etat() == ETATZERO) {
167 for (
int j=0; j<nt; j++) {
172 assert(uu.get_etat() == ETATQCQ) ;
173 for (
int j=0; j<nt; j++) {
174 cf[j] = (*(uu.c_cf))(l, k, j, i) ;
178 const char* nomx =
"j" ;
182 ostringstream str_tit1 ;
183 str_tit1 <<
"\\gh coef. for k=" << k <<
", i=" << i <<
" (domain " 185 title1 = str_tit1.str() ;
192 ostringstream str_nomy ;
193 str_nomy <<
"log| c\\d" << k <<
",j," << i <<
"\\u |" ;
194 nomy1 = str_nomy.str() ;
200 des_coef(cf, nt, pzero, nomx, nomy1.c_str(), title1.c_str(), device, newgraph,
212 void des_coef_phi(
const Valeur& uu,
int l,
int j,
int i,
double pzero,
213 const char* nomy,
const char* title,
const char* device,
214 int newgraph,
int nxpage,
int nypage) {
216 assert(uu.get_etat() != ETATNONDEF) ;
219 int np = uu.get_mg()->get_np(l) + 2 ;
221 double* cf =
new double[np] ;
225 if (uu.get_etat() == ETATZERO) {
226 for (
int k=0; k<np; k++) {
231 assert(uu.get_etat() == ETATQCQ) ;
232 for (
int k=0; k<np; k++) {
233 cf[k] = (*(uu.c_cf))(l, k, j, i) ;
237 const char* nomx =
"k" ;
241 ostringstream str_tit1 ;
242 str_tit1 <<
"\\gf coef. for j=" << j <<
", i=" << i <<
" (domain " 244 title1 = str_tit1.str() ;
251 ostringstream str_nomy ;
252 str_nomy <<
"log| c\\dk," << j <<
',' << i <<
"\\u |" ;
253 nomy1 = str_nomy.str() ;
259 des_coef(cf, np, pzero, nomx, nomy1.c_str(), title1.c_str(), device, newgraph,
void des_coef_xi(const Valeur &uu, int l, int k, int j, double pzero=1.e-14, const char *nomy=0x0, const char *title=0x0, const char *device=0x0, int newgraph=3, int nxpage=1, int nypage=1)
Plots the coefficients of the spectral expansion in of a Valeur .
void des_coef_phi(const Valeur &uu, int l, int j, int i, double pzero=1.e-14, const char *nomy=0x0, const char *title=0x0, const char *device=0x0, int newgraph=3, int nxpage=1, int nypage=1)
Plots the coefficients of the spectral expansion in of a Valeur .
void des_coef(const double *cf, int n, double pzero, const char *nomx, const char *nomy, const char *title, const char *device, int newgraph, int nxpage, int nypage)
Basic routine for drawing spectral coefficients.
void des_coef_theta(const Valeur &uu, int l, int k, int i, double pzero=1.e-14, const char *nomy=0x0, const char *title=0x0, const char *device=0x0, int newgraph=3, int nxpage=1, int nypage=1)
Plots the coefficients of the spectral expansion in of a Valeur .