- scl.jdg [c+]
[..] La fonction [jdg] besseliscl
Code
int besseli_jdg(){
scltracefa(§, ƒ, ∅);
scltracefc("scl-%s (%s) : %s\n\n", sclver(), sclsec(), temps_char(0));
int xn=1001, xi; double *x=newtablin(xn+1, 0, 4);
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] = besseli(0, x[xi]);
y_1[xi] = besseli(1, x[xi]);
y_2[xi] = besseli(2, x[xi]);
y_3[xi] = besseli(3, x[xi]);
}
scl::string_c imgname=scl::string_c(ƒ)+".svg",
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 modified",
"subtitlex", imgname.c_str(), /*"subtitle", subtitle.c_str(),*/
"linespec", "-l;-q;-t;-m", "linespeca", "-a",
"aymin", 0, "aymax", 3.5,
"legend", "I0;I1;I2;I3", "legcorn", "ula",
"background-color", "w",
/*"xlabel", "[rad]",*/ ∅);
scltracefe(§, ƒ, ∅);
return 0;
}
/* ƒ décorée par
le 27-05-2026 21:12:08 */
Sortie
[>..\xpl\src\scl.jdg.cpp.besseli_jdg]
scl-26.05 (gwin64) : 27-05-2026 21:12:08
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<< END OF DISLIN / VERSION 11.3.2 <<
<< Date : 27.05.2026 Time : 21:12:08 Pageformat: DA4L <<
<< Vectors : 4234 Warnings: 0 Fileformat: SVG <<
<< Metafile: ./srt/besseli_jdg.svg <<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[<..\xpl\src\scl.jdg.cpp.besseli_jdg]