[..] La fonction [jdg] polylescl

Code
int polyle_jdg(){ scltracefa(§, ƒ, ); scltracefc("scl-%s (%s) : %s\n\n", sclver(), sclsec(), temps_char(0)); int xn=1001, xi;double *x=newtablin(xn, -1, 1); double *y_0=new double[xn], *y_1=new double[xn], *y_2=new double[xn], *y_3=new double[xn], *y_4=new double[xn], *y_5=new double[xn]; int n_0=0, n_1=1, n_2=2, n_3=3, n_4=4, n_5=5; for(xi=0;xi<xn;xi++){ y_0[xi] = plegendre(n_0, x[xi]); y_1[xi] = plegendre(n_1, x[xi]); y_2[xi] = plegendre(n_2, x[xi]); y_3[xi] = plegendre(n_3, x[xi]); y_4[xi] = plegendre(n_4, x[xi]); y_5[xi] = plegendre(n_5, 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, "curve", xn, x, y_4, "curve", xn, x, y_5, "grid", "on", "title", "Legendre's polynomials", "subtitlex", imgname.c_str(), /*"subtitle", subtitle.c_str(),*/ "linespec", ".-h;-t;:l;--c;--t;-.i", /*"linespeca", "-a",*/ "background-color", "w", "aymin", -1, "aymax", 2, "legend", "n=0;n=1;n=2;n=3;n=4;n=5", "legcorn", "ura", /*"xlabel", "[rad]",*/ ); scltracefe(§, ƒ, ); return 0; } /* ƒ décorée par 🔬 le 26-05-2026 23:38:08 */
Sortie
[>..\xpl\src\scl.jdg.cpp.polyle_jdg] scl-26.05 (gwin64) : 26-05-2026 23:38:08 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< << END OF DISLIN / VERSION 11.3.2 << << Date : 26.05.2026 Time : 23:38:08 Pageformat: DA4L << << Vectors : 4558 Warnings: 0 Fileformat: PDF << << Metafile: ./srt/polyle_jdg.pdf << <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< [<..\xpl\src\scl.jdg.cpp.polyle_jdg]