- scl.jdg [c+]
[..] La fonction [jdg] besseljscl
Code
int besselj_jdg(){
scltracefa(§, ƒ, ∅);
scltracefc("scl-%s (%s) : %s\n\n", sclver(), sclsec(), temps_char(0));
int xn=1001, xi; double *x=newtablin(xn, 0, 20);
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] = besselj(0, x[xi]);
y_1[xi] = besselj(1, x[xi]);
y_2[xi] = besselj(2, x[xi]);
y_3[xi] = besselj(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 1st kind",
"subtitlex", imgname.c_str(), /*"subtitle", subtitle.c_str(),*/
"linespec", ".-h;-t;:l;--c", /*"linespeca", "-a",*/
/*"aymin", 0.0, "aymax", 2.0,*/
"legend", "J0;J1;J2;J3", "legcorn", "ura",
"background-color", "w",
/*"xlabel", "[rad]",*/ ∅);
scltracefe(§, ƒ, ∅);
return 0;
}
/* ƒ décorée par
le 27-05-2026 21:12:05 */
Sortie
[>..\xpl\src\scl.jdg.cpp.besselj_jdg]
scl-26.05 (gwin64) : 27-05-2026 21:12:05
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<< END OF DISLIN / VERSION 11.3.2 <<
<< Date : 27.05.2026 Time : 21:12:05 Pageformat: DA4L <<
<< Vectors : 3682 Warnings: 0 Fileformat: PDF <<
<< Metafile: ./srt/besselj_jdg.pdf <<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[<..\xpl\src\scl.jdg.cpp.besselj_jdg]
