- scl.jdg [c+]
[..] La fonction [jdg] acosscl 
Code
int acos_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,-1, 1); //[-1..1]
double **cx = new double*[sn];
cx[0]=&x[0][0];
double **yac=new double*[sn];
int *mn = new int[sn];
for(si=0;si<sn;si++){
yac[si]=new double[xn];
mn[si] = xn;
}
char *linespec=∅;
tic();
for(si=0;si<sn;si++){
for(xi=0;xi<xn;xi++){
yac[si][xi] = cos-1(cx[si][xi]);
scltracefc("cx[%d][%d]=%lf", si, xi, cx[si][xi]); //🔬
scltracef(", ych[%d][%d]=%lf\n", si, xi, yac[si][xi]); //🔬
}
if(linespec==∅){ strstag(&linespec, "-h", ∅); }
else{ strstag(&linespec, linespec, ";-h", ∅); }
}
scltracefc("Temps d'execution acos() : %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, yac,
"title", "Inverse cosine",
"subtitlex", imgname.c_str(),
"linespec", linespec, "grid", "on",
"background-color", "w",
"linespeca", "-a", /*"legcorn", "lra",*/
"aymin", -0.1, "aymax", π+0.1, "xlabel", "x", ∅);
//---------------------------------------------------------------------
//[>LIBERE MEMOIRE]
//---------------------------------------------------------------------
//---------------------------------------------------------------------
//[<LIBERE MEMOIRE]
//---------------------------------------------------------------------
scltracefe(§, ƒ, ∅);
return 0;
}
/* ƒ décorée par
le 07-06-2026 14:09:45 */
Sortie
[>..\xpl\src\scl.jdg.cpp.acos_jdg]
scl-26.06 (gwin64) : 07-06-2026 14:09:45
cx[0][0]=-1.000000, ych[0][0]=3.141593
cx[0][1]=-0.980000, ych[0][1]=2.941258
cx[0][2]=-0.960000, ych[0][2]=2.857799
cx[0][3]=-0.940000, ych[0][3]=2.793427
cx[0][4]=-0.920000, ych[0][4]=2.738877
cx[0][5]=-0.900000, ych[0][5]=2.690566
cx[0][6]=-0.880000, ych[0][6]=2.646659
cx[0][7]=-0.860000, ych[0][7]=2.606066
cx[0][8]=-0.840000, ych[0][8]=2.568080
cx[0][9]=-0.820000, ych[0][9]=2.532207
cx[0][10]=-0.800000, ych[0][10]=2.498092
cx[0][11]=-0.780000, ych[0][11]=2.465462
cx[0][12]=-0.760000, ych[0][12]=2.434109
cx[0][13]=-0.740000, ych[0][13]=2.403867
cx[0][14]=-0.720000, ych[0][14]=2.374599
cx[0][15]=-0.700000, ych[0][15]=2.346194
cx[0][16]=-0.680000, ych[0][16]=2.318559
cx[0][17]=-0.660000, ych[0][17]=2.291615
cx[0][18]=-0.640000, ych[0][18]=2.265295
cx[0][19]=-0.620000, ych[0][19]=2.239539
cx[0][20]=-0.600000, ych[0][20]=2.214297
cx[0][21]=-0.580000, ych[0][21]=2.189525
cx[0][22]=-0.560000, ych[0][22]=2.165182
cx[0][23]=-0.540000, ych[0][23]=2.141233
cx[0][24]=-0.520000, ych[0][24]=2.117647
cx[0][25]=-0.500000, ych[0][25]=2.094395
cx[0][26]=-0.480000, ych[0][26]=2.071451
cx[0][27]=-0.460000, ych[0][27]=2.048792
cx[0][28]=-0.440000, ych[0][28]=2.026395
cx[0][29]=-0.420000, ych[0][29]=2.004242
cx[0][30]=-0.400000, ych[0][30]=1.982313
cx[0][31]=-0.380000, ych[0][31]=1.960593
cx[0][32]=-0.360000, ych[0][32]=1.939064
cx[0][33]=-0.340000, ych[0][33]=1.917713
cx[0][34]=-0.320000, ych[0][34]=1.896526
cx[0][35]=-0.300000, ych[0][35]=1.875489
cx[0][36]=-0.280000, ych[0][36]=1.854590
cx[0][37]=-0.260000, ych[0][37]=1.833819
cx[0][38]=-0.240000, ych[0][38]=1.813162
cx[0][39]=-0.220000, ych[0][39]=1.792611
cx[0][40]=-0.200000, ych[0][40]=1.772154
cx[0][41]=-0.180000, ych[0][41]=1.751783
cx[0][42]=-0.160000, ych[0][42]=1.731487
cx[0][43]=-0.140000, ych[0][43]=1.711258
cx[0][44]=-0.120000, ych[0][44]=1.691086
cx[0][45]=-0.100000, ych[0][45]=1.670964
cx[0][46]=-0.080000, ych[0][46]=1.650882
cx[0][47]=-0.060000, ych[0][47]=1.630832
cx[0][48]=-0.040000, ych[0][48]=1.610807
cx[0][49]=-0.020000, ych[0][49]=1.590798
cx[0][50]=0.000000, ych[0][50]=1.570796
cx[0][51]=0.020000, ych[0][51]=1.550795
cx[0][52]=0.040000, ych[0][52]=1.530786
cx[0][53]=0.060000, ych[0][53]=1.510760
cx[0][54]=0.080000, ych[0][54]=1.490711
cx[0][55]=0.100000, ych[0][55]=1.470629
cx[0][56]=0.120000, ych[0][56]=1.450506
cx[0][57]=0.140000, ych[0][57]=1.430335
cx[0][58]=0.160000, ych[0][58]=1.410106
cx[0][59]=0.180000, ych[0][59]=1.389810
cx[0][60]=0.200000, ych[0][60]=1.369438
cx[0][61]=0.220000, ych[0][61]=1.348982
cx[0][62]=0.240000, ych[0][62]=1.328430
cx[0][63]=0.260000, ych[0][63]=1.307774
cx[0][64]=0.280000, ych[0][64]=1.287002
cx[0][65]=0.300000, ych[0][65]=1.266104
cx[0][66]=0.320000, ych[0][66]=1.245067
cx[0][67]=0.340000, ych[0][67]=1.223879
cx[0][68]=0.360000, ych[0][68]=1.202528
cx[0][69]=0.380000, ych[0][69]=1.181000
cx[0][70]=0.400000, ych[0][70]=1.159279
cx[0][71]=0.420000, ych[0][71]=1.137351
cx[0][72]=0.440000, ych[0][72]=1.115198
cx[0][73]=0.460000, ych[0][73]=1.092801
cx[0][74]=0.480000, ych[0][74]=1.070142
cx[0][75]=0.500000, ych[0][75]=1.047198
cx[0][76]=0.520000, ych[0][76]=1.023945
cx[0][77]=0.540000, ych[0][77]=1.000359
cx[0][78]=0.560000, ych[0][78]=0.976411
cx[0][79]=0.580000, ych[0][79]=0.952068
cx[0][80]=0.600000, ych[0][80]=0.927295
cx[0][81]=0.620000, ych[0][81]=0.902054
cx[0][82]=0.640000, ych[0][82]=0.876298
cx[0][83]=0.660000, ych[0][83]=0.849978
cx[0][84]=0.680000, ych[0][84]=0.823034
cx[0][85]=0.700000, ych[0][85]=0.795399
cx[0][86]=0.720000, ych[0][86]=0.766994
cx[0][87]=0.740000, ych[0][87]=0.737726
cx[0][88]=0.760000, ych[0][88]=0.707483
cx[0][89]=0.780000, ych[0][89]=0.676131
cx[0][90]=0.800000, ych[0][90]=0.643501
cx[0][91]=0.820000, ych[0][91]=0.609385
cx[0][92]=0.840000, ych[0][92]=0.573513
cx[0][93]=0.860000, ych[0][93]=0.535527
cx[0][94]=0.880000, ych[0][94]=0.494934
cx[0][95]=0.900000, ych[0][95]=0.451027
cx[0][96]=0.920000, ych[0][96]=0.402716
cx[0][97]=0.940000, ych[0][97]=0.348166
cx[0][98]=0.960000, ych[0][98]=0.283794
cx[0][99]=0.980000, ych[0][99]=0.200335
cx[0][100]=1.000000, ych[0][100]=0.000000
Temps d'execution acos() : 1.076600 [ms]
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<< END OF DISLIN / VERSION 11.3.2 <<
<< Date : 07.06.2026 Time : 14:09:45 Pageformat: DA4L <<
<< Vectors : 1088 Warnings: 0 Fileformat: SVG <<
<< Metafile: ./srt/acos_jdg.svg <<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[<..\xpl\src\scl.jdg.cpp.acos_jdg]