- scl.jdg [c+]
[..] La fonction [jdg] besselyscl
Code
int bessely_jdg(){
scltracefa(§, ƒ, ∅);
scltracefc("scl-%s (%s) : %s\n\n", sclver(), sclsec(), temps_char(0));
int xn=1001, xi; double *cx=newtablin(xn+1, 0, 20);
double *x = &cx[1];
double *y_0=new double[xn], *y_1=new double[xn], *y_2=new double[xn],
*y_3=new double[xn];
for(xi=0;xi<xn;xi++){
y_0[xi] = bessely(0, x[xi]);
y_1[xi] = bessely(1, x[xi]);
y_2[xi] = bessely(2, x[xi]);
y_3[xi] = bessely(3, x[xi]);
}
scl::string_c imgname=scl::string_c(ƒ)+".pdf",
imgpath="./srt/"+imgname;
graf_dis(imgpath.c_str(), xn, x, y_0,
"curve", xn, x, y_1, "curve", xn, x, y_2, "curve", xn, x, y_3,
"grid", "on",
"title", "Bessel's function of 2nd kind",
"subtitlex", imgname.c_str(), /*"subtitle", subtitle.c_str(),*/
"linespec", ".-h;-t;:l;--c", /*"linespeca", "-a",*/
"aymin", -0.5, "aymax", 1,
"legend", "Y0;Y1;Y2;Y3", "legcorn", "ura",
"background-color", "w",
/*"xlabel", "[rad]",*/ ∅);
scltracefe(§, ƒ, ∅);
return 0;
}
/* ƒ décorée par
le 27-05-2026 21:12:06 */
Sortie
[>..\xpl\src\scl.jdg.cpp.bessely_jdg]
scl-26.05 (gwin64) : 27-05-2026 21:12:06
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<< END OF DISLIN / VERSION 11.3.2 <<
<< Date : 27.05.2026 Time : 21:12:06 Pageformat: DA4L <<
<< Vectors : 3924 Warnings: 0 Fileformat: PDF <<
<< Metafile: ./srt/bessely_jdg.pdf <<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[<..\xpl\src\scl.jdg.cpp.bessely_jdg]
