- scl.jdg [c+]
[..] La fonction [jdg] sechscl 
Code
int sech_jdg(){
scltracefa(§, ƒ, ∅);
scltracefc("scl-%s (%s) : %s\n", sclver(), sclsec(), temps_char(0));
int sn=1, si, xn=101, xi;
double **x = new double*[sn];
x[0] = newtablin(xn, -5, 5); //[-5 .. 5 ]
double **cx = new double*[sn];
cx[0]=&x[0][0];
double **ysc=new double*[sn];
int *mn = new int[sn];
for(si=0;si<sn;si++){
ysc[si]=new double[xn];
mn[si] = xn;
}
char *linespec=∅;
tic();
for(si=0;si<sn;si++){
for(xi=0;xi<xn;xi++){
ysc[si][xi]=1 / cosh_scl(cx[si][xi]);
scltracefc("cx[%d][%d]=%lf", si, xi, cx[si][xi]); //🔬
scltracef(", yct[%d][%d]=%lf\n", si, xi, ysc[si][xi]); //🔬
}
if(linespec==∅){ strstag(&linespec, "-h", ∅); }
else{ strstag(&linespec, linespec, ";-h", ∅); }
}
scltracefc("Temps d'execution sech() : %lf [ms]\n", tac());
scl::string_c imgname=scl::string_c(ƒ)+".svg",
imgpath="./srt/"+imgname;
graf_dis(imgpath.c_str(), 0, ∅, ∅,
"curvex", sn, mn, x, ysc,
"title", "Hyperbolic secant",
"subtitlex", imgname.c_str(),
"linespec", linespec, "grid", "on",
"background-color", "w",
"linespeca", "-a", /*"legcorn", "lra",*/
"aymin", -0.1, "aymax", 1.1, "xlabel", "x", ∅);
//---------------------------------------------------------------------
//[>LIBERE MEMOIRE]
//---------------------------------------------------------------------
//---------------------------------------------------------------------
//[<LIBERE MEMOIRE]
//---------------------------------------------------------------------
scltracefe(§, ƒ, ∅);
return 0;
}
/* ƒ décorée par
le 06-06-2026 11:19:06 */
Sortie
[>..\xpl\src\scl.jdg.cpp.sech_jdg]
scl-26.06 (gwin64) : 06-06-2026 11:19:06
cx[0][0]=-5.000000, yct[0][0]=0.013475
cx[0][1]=-4.900000, yct[0][1]=0.014892
cx[0][2]=-4.800000, yct[0][2]=0.016458
cx[0][3]=-4.700000, yct[0][3]=0.018189
cx[0][4]=-4.600000, yct[0][4]=0.020102
cx[0][5]=-4.500000, yct[0][5]=0.022215
cx[0][6]=-4.400000, yct[0][6]=0.024551
cx[0][7]=-4.300000, yct[0][7]=0.027132
cx[0][8]=-4.200000, yct[0][8]=0.029984
cx[0][9]=-4.100000, yct[0][9]=0.033136
cx[0][10]=-4.000000, yct[0][10]=0.036619
cx[0][11]=-3.900000, yct[0][11]=0.040467
cx[0][12]=-3.800000, yct[0][12]=0.044719
cx[0][13]=-3.700000, yct[0][13]=0.049417
cx[0][14]=-3.600000, yct[0][14]=0.054607
cx[0][15]=-3.500000, yct[0][15]=0.060340
cx[0][16]=-3.400000, yct[0][16]=0.066672
cx[0][17]=-3.300000, yct[0][17]=0.073666
cx[0][18]=-3.200000, yct[0][18]=0.081389
cx[0][19]=-3.100000, yct[0][19]=0.089916
cx[0][20]=-3.000000, yct[0][20]=0.099328
cx[0][21]=-2.900000, yct[0][21]=0.109714
cx[0][22]=-2.800000, yct[0][22]=0.121172
cx[0][23]=-2.700000, yct[0][23]=0.133807
cx[0][24]=-2.600000, yct[0][24]=0.147732
cx[0][25]=-2.500000, yct[0][25]=0.163071
cx[0][26]=-2.400000, yct[0][26]=0.179955
cx[0][27]=-2.300000, yct[0][27]=0.198522
cx[0][28]=-2.200000, yct[0][28]=0.218919
cx[0][29]=-2.100000, yct[0][29]=0.241295
cx[0][30]=-2.000000, yct[0][30]=0.265802
cx[0][31]=-1.900000, yct[0][31]=0.292592
cx[0][32]=-1.800000, yct[0][32]=0.321805
cx[0][33]=-1.700000, yct[0][33]=0.353567
cx[0][34]=-1.600000, yct[0][34]=0.387978
cx[0][35]=-1.500000, yct[0][35]=0.425096
cx[0][36]=-1.400000, yct[0][36]=0.464922
cx[0][37]=-1.300000, yct[0][37]=0.507379
cx[0][38]=-1.200000, yct[0][38]=0.552286
cx[0][39]=-1.100000, yct[0][39]=0.599334
cx[0][40]=-1.000000, yct[0][40]=0.648054
cx[0][41]=-0.900000, yct[0][41]=0.697795
cx[0][42]=-0.800000, yct[0][42]=0.747700
cx[0][43]=-0.700000, yct[0][43]=0.796705
cx[0][44]=-0.600000, yct[0][44]=0.843551
cx[0][45]=-0.500000, yct[0][45]=0.886819
cx[0][46]=-0.400000, yct[0][46]=0.925007
cx[0][47]=-0.300000, yct[0][47]=0.956628
cx[0][48]=-0.200000, yct[0][48]=0.980328
cx[0][49]=-0.100000, yct[0][49]=0.995021
cx[0][50]=0.000000, yct[0][50]=1.000000
cx[0][51]=0.100000, yct[0][51]=0.995021
cx[0][52]=0.200000, yct[0][52]=0.980328
cx[0][53]=0.300000, yct[0][53]=0.956628
cx[0][54]=0.400000, yct[0][54]=0.925007
cx[0][55]=0.500000, yct[0][55]=0.886819
cx[0][56]=0.600000, yct[0][56]=0.843551
cx[0][57]=0.700000, yct[0][57]=0.796705
cx[0][58]=0.800000, yct[0][58]=0.747700
cx[0][59]=0.900000, yct[0][59]=0.697795
cx[0][60]=1.000000, yct[0][60]=0.648054
cx[0][61]=1.100000, yct[0][61]=0.599334
cx[0][62]=1.200000, yct[0][62]=0.552286
cx[0][63]=1.300000, yct[0][63]=0.507379
cx[0][64]=1.400000, yct[0][64]=0.464922
cx[0][65]=1.500000, yct[0][65]=0.425096
cx[0][66]=1.600000, yct[0][66]=0.387978
cx[0][67]=1.700000, yct[0][67]=0.353567
cx[0][68]=1.800000, yct[0][68]=0.321805
cx[0][69]=1.900000, yct[0][69]=0.292592
cx[0][70]=2.000000, yct[0][70]=0.265802
cx[0][71]=2.100000, yct[0][71]=0.241295
cx[0][72]=2.200000, yct[0][72]=0.218919
cx[0][73]=2.300000, yct[0][73]=0.198522
cx[0][74]=2.400000, yct[0][74]=0.179955
cx[0][75]=2.500000, yct[0][75]=0.163071
cx[0][76]=2.600000, yct[0][76]=0.147732
cx[0][77]=2.700000, yct[0][77]=0.133807
cx[0][78]=2.800000, yct[0][78]=0.121172
cx[0][79]=2.900000, yct[0][79]=0.109714
cx[0][80]=3.000000, yct[0][80]=0.099328
cx[0][81]=3.100000, yct[0][81]=0.089916
cx[0][82]=3.200000, yct[0][82]=0.081389
cx[0][83]=3.300000, yct[0][83]=0.073666
cx[0][84]=3.400000, yct[0][84]=0.066672
cx[0][85]=3.500000, yct[0][85]=0.060340
cx[0][86]=3.600000, yct[0][86]=0.054607
cx[0][87]=3.700000, yct[0][87]=0.049417
cx[0][88]=3.800000, yct[0][88]=0.044719
cx[0][89]=3.900000, yct[0][89]=0.040467
cx[0][90]=4.000000, yct[0][90]=0.036619
cx[0][91]=4.100000, yct[0][91]=0.033136
cx[0][92]=4.200000, yct[0][92]=0.029984
cx[0][93]=4.300000, yct[0][93]=0.027132
cx[0][94]=4.400000, yct[0][94]=0.024551
cx[0][95]=4.500000, yct[0][95]=0.022215
cx[0][96]=4.600000, yct[0][96]=0.020102
cx[0][97]=4.700000, yct[0][97]=0.018189
cx[0][98]=4.800000, yct[0][98]=0.016458
cx[0][99]=4.900000, yct[0][99]=0.014892
cx[0][100]=5.000000, yct[0][100]=0.013475
Temps d'execution sech() : 1.114900 [ms]
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<< END OF DISLIN / VERSION 11.3.2 <<
<< Date : 06.06.2026 Time : 11:19:06 Pageformat: DA4L <<
<< Vectors : 1134 Warnings: 0 Fileformat: SVG <<
<< Metafile: ./srt/sech_jdg.svg <<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[<..\xpl\src\scl.jdg.cpp.sech_jdg]