[..] La fonction [jdg] coshscl

Code
int cosh_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 **ych=new double*[sn]; int *mn = new int[sn]; for(si=0;si<sn;si++){ ych[si]=new double[xn]; mn[si] = xn; } char *linespec=; tic(); for(si=0;si<sn;si++){ for(xi=0;xi<xn;xi++){ ych[si][xi] = cosh_scl(cx[si][xi]); scltracefc("cx[%d][%d]=%lf", si, xi, cx[si][xi]); //🔬 scltracef(", ych[%d][%d]=%lf\n", si, xi, ych[si][xi]); //🔬 } if(linespec==){ strstag(&linespec, "-h", ); } else{ strstag(&linespec, linespec, ";-h", ); } } scltracefc("Temps d'execution cosh() : %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, ych, "title", "Hyperbolic cosine", "subtitlex", imgname.c_str(), "linespec", linespec, "grid", "on", "background-color", "w", "linespeca", "-a", /*"legcorn", "lra",*/ "aymin", -0.1, "aymax", 50.0, "xlabel", "x", ); //--------------------------------------------------------------------- //[>LIBERE MEMOIRE] //--------------------------------------------------------------------- //--------------------------------------------------------------------- //[<LIBERE MEMOIRE] //--------------------------------------------------------------------- scltracefe(§, ƒ, ); return 0; } /* ƒ décorée par 🔬 le 06-06-2026 15:57:30 */
Sortie
[>..\xpl\src\scl.jdg.cpp.cosh_jdg] scl-26.06 (gwin64) : 06-06-2026 15:57:30 cx[0][0]=-5.000000, ych[0][0]=74.209949 cx[0][1]=-4.900000, ych[0][1]=67.148613 cx[0][2]=-4.800000, ych[0][2]=60.759324 cx[0][3]=-4.700000, ych[0][3]=54.978134 cx[0][4]=-4.600000, ych[0][4]=49.747184 cx[0][5]=-4.500000, ych[0][5]=45.014120 cx[0][6]=-4.400000, ych[0][6]=40.731573 cx[0][7]=-4.300000, ych[0][7]=36.856681 cx[0][8]=-4.200000, ych[0][8]=33.350663 cx[0][9]=-4.100000, ych[0][9]=30.178430 cx[0][10]=-4.000000, ych[0][10]=27.308233 cx[0][11]=-3.900000, ych[0][11]=24.711346 cx[0][12]=-3.800000, ych[0][12]=22.361778 cx[0][13]=-3.700000, ych[0][13]=20.236014 cx[0][14]=-3.600000, ych[0][14]=18.312779 cx[0][15]=-3.500000, ych[0][15]=16.572825 cx[0][16]=-3.400000, ych[0][16]=14.998737 cx[0][17]=-3.300000, ych[0][17]=13.574761 cx[0][18]=-3.200000, ych[0][18]=12.286646 cx[0][19]=-3.100000, ych[0][19]=11.121500 cx[0][20]=-3.000000, ych[0][20]=10.067662 cx[0][21]=-2.900000, ych[0][21]=9.114584 cx[0][22]=-2.800000, ych[0][22]=8.252728 cx[0][23]=-2.700000, ych[0][23]=7.473469 cx[0][24]=-2.600000, ych[0][24]=6.769006 cx[0][25]=-2.500000, ych[0][25]=6.132289 cx[0][26]=-2.400000, ych[0][26]=5.556947 cx[0][27]=-2.300000, ych[0][27]=5.037221 cx[0][28]=-2.200000, ych[0][28]=4.567908 cx[0][29]=-2.100000, ych[0][29]=4.144313 cx[0][30]=-2.000000, ych[0][30]=3.762196 cx[0][31]=-1.900000, ych[0][31]=3.417732 cx[0][32]=-1.800000, ych[0][32]=3.107473 cx[0][33]=-1.700000, ych[0][33]=2.828315 cx[0][34]=-1.600000, ych[0][34]=2.577464 cx[0][35]=-1.500000, ych[0][35]=2.352410 cx[0][36]=-1.400000, ych[0][36]=2.150898 cx[0][37]=-1.300000, ych[0][37]=1.970914 cx[0][38]=-1.200000, ych[0][38]=1.810656 cx[0][39]=-1.100000, ych[0][39]=1.668519 cx[0][40]=-1.000000, ych[0][40]=1.543081 cx[0][41]=-0.900000, ych[0][41]=1.433086 cx[0][42]=-0.800000, ych[0][42]=1.337435 cx[0][43]=-0.700000, ych[0][43]=1.255169 cx[0][44]=-0.600000, ych[0][44]=1.185465 cx[0][45]=-0.500000, ych[0][45]=1.127626 cx[0][46]=-0.400000, ych[0][46]=1.081072 cx[0][47]=-0.300000, ych[0][47]=1.045339 cx[0][48]=-0.200000, ych[0][48]=1.020067 cx[0][49]=-0.100000, ych[0][49]=1.005004 cx[0][50]=0.000000, ych[0][50]=1.000000 cx[0][51]=0.100000, ych[0][51]=1.005004 cx[0][52]=0.200000, ych[0][52]=1.020067 cx[0][53]=0.300000, ych[0][53]=1.045339 cx[0][54]=0.400000, ych[0][54]=1.081072 cx[0][55]=0.500000, ych[0][55]=1.127626 cx[0][56]=0.600000, ych[0][56]=1.185465 cx[0][57]=0.700000, ych[0][57]=1.255169 cx[0][58]=0.800000, ych[0][58]=1.337435 cx[0][59]=0.900000, ych[0][59]=1.433086 cx[0][60]=1.000000, ych[0][60]=1.543081 cx[0][61]=1.100000, ych[0][61]=1.668519 cx[0][62]=1.200000, ych[0][62]=1.810656 cx[0][63]=1.300000, ych[0][63]=1.970914 cx[0][64]=1.400000, ych[0][64]=2.150898 cx[0][65]=1.500000, ych[0][65]=2.352410 cx[0][66]=1.600000, ych[0][66]=2.577464 cx[0][67]=1.700000, ych[0][67]=2.828315 cx[0][68]=1.800000, ych[0][68]=3.107473 cx[0][69]=1.900000, ych[0][69]=3.417732 cx[0][70]=2.000000, ych[0][70]=3.762196 cx[0][71]=2.100000, ych[0][71]=4.144313 cx[0][72]=2.200000, ych[0][72]=4.567908 cx[0][73]=2.300000, ych[0][73]=5.037221 cx[0][74]=2.400000, ych[0][74]=5.556947 cx[0][75]=2.500000, ych[0][75]=6.132289 cx[0][76]=2.600000, ych[0][76]=6.769006 cx[0][77]=2.700000, ych[0][77]=7.473469 cx[0][78]=2.800000, ych[0][78]=8.252728 cx[0][79]=2.900000, ych[0][79]=9.114584 cx[0][80]=3.000000, ych[0][80]=10.067662 cx[0][81]=3.100000, ych[0][81]=11.121500 cx[0][82]=3.200000, ych[0][82]=12.286646 cx[0][83]=3.300000, ych[0][83]=13.574761 cx[0][84]=3.400000, ych[0][84]=14.998737 cx[0][85]=3.500000, ych[0][85]=16.572825 cx[0][86]=3.600000, ych[0][86]=18.312779 cx[0][87]=3.700000, ych[0][87]=20.236014 cx[0][88]=3.800000, ych[0][88]=22.361778 cx[0][89]=3.900000, ych[0][89]=24.711346 cx[0][90]=4.000000, ych[0][90]=27.308233 cx[0][91]=4.100000, ych[0][91]=30.178430 cx[0][92]=4.200000, ych[0][92]=33.350663 cx[0][93]=4.300000, ych[0][93]=36.856681 cx[0][94]=4.400000, ych[0][94]=40.731573 cx[0][95]=4.500000, ych[0][95]=45.014120 cx[0][96]=4.600000, ych[0][96]=49.747184 cx[0][97]=4.700000, ych[0][97]=54.978134 cx[0][98]=4.800000, ych[0][98]=60.759324 cx[0][99]=4.900000, ych[0][99]=67.148613 cx[0][100]=5.000000, ych[0][100]=74.209949 Temps d'execution cosh() : 1.094200 [ms] <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< << END OF DISLIN / VERSION 11.3.2 << << Date : 06.06.2026 Time : 15:57:30 Pageformat: DA4L << << Vectors : 1023 Warnings: 0 Fileformat: SVG << << Metafile: ./srt/cosh_jdg.svg << <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< [<..\xpl\src\scl.jdg.cpp.cosh_jdg]