mise a jour

This commit is contained in:
“[JMF]” 2023-01-18 08:54:52 +01:00
parent e664e677e2
commit 1c6dedd346
16 changed files with 3818 additions and 4 deletions

View File

@ -0,0 +1,22 @@
# iport PAndas
import pandas as pd
# data generation
x=np.linspace(0,5)
y1 = np.power(x,0.5)
y2 = np.power(x,0.25)
# Pandas series
sx = pd.Series(x)
sy1 = pd.Series(y1)
sy2 = pd.Series(y2)
# Concat data in columns
nd = pd.concat([sx,sy1,sy2],axis=1)
# Write data
nd.to_csv("test.csv")
# Read data
d = pd.read_csv("test.csv",delimiter=",")
print(d)

View File

@ -6,9 +6,9 @@ y= np.sin(x)
# implicity
plt.plot(x,y,label="sin")
plt.xlabel('x label')
plt.ylabel('y label')
plt.title("Simple Plot")
plt.xlabel('x')
plt.ylabel('y')
plt.title("Plot")
plt.legend()
plt.show()
@ -18,5 +18,5 @@ ax = plt.subplot(aspect=1)
ax.plot(x,y,label="sin")
ax.set_xlabel('x') # Add an x-label to the axes.
ax.set_ylabel('y') # Add a y-label to the axes.
ax.set_title("Simple Plot") # Add a title to the axes.
ax.set_title("Plot") # Add a title to the axes.
ax.legend() # Add a legend.

1401
source/02_io_readwrite.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 262 KiB

1784
source/Plotting II .ipynb Normal file

File diff suppressed because one or more lines are too long

483
source/Plotting1.ipynb Normal file

File diff suppressed because one or more lines are too long

BIN
source/anatomy.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 229 KiB

BIN
source/anatomy.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

6
source/data.csv Normal file
View File

@ -0,0 +1,6 @@
x;y;er
1;1;0.2
2;4;0.2
3;8;0.3
4;17;0.4
5;24;0.2
1 x y er
2 1 1 0.2
3 2 4 0.2
4 3 8 0.3
5 4 17 0.4
6 5 24 0.2

3
source/data.raw Normal file
View File

@ -0,0 +1,3 @@
1 1 0.2
2 4 0.2
3 8 0.3

4
source/data.txt Normal file
View File

@ -0,0 +1,4 @@
x y er
1 1 0.2
2 4 0.2
3 8 0.3

BIN
source/data.xlsx Normal file

Binary file not shown.

11
source/expe.dat Normal file
View File

@ -0,0 +1,11 @@
0.000000 0.894520
100.000000 0.849616
200.000000 0.806313
300.000000 0.763861
400.000000 0.722299
500.000000 0.681680
600.000000 0.642211
700.000000 0.603411
800.000000 0.565199
900.000000 0.528873
1000.000000 0.492817

BIN
source/output.pdf Normal file

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 9.3 KiB

49
source/power.dat Normal file
View File

@ -0,0 +1,49 @@
0.102 0.319 0.565
0.204 0.452 0.672
0.306 0.553 0.744
0.408 0.639 0.799
0.510 0.714 0.845
0.612 0.782 0.885
0.714 0.845 0.919
0.816 0.904 0.951
0.918 0.958 0.979
1.020 1.010 1.005
1.122 1.059 1.029
1.224 1.107 1.052
1.327 1.152 1.073
1.429 1.195 1.093
1.531 1.237 1.112
1.633 1.278 1.130
1.735 1.317 1.148
1.837 1.355 1.164
1.939 1.392 1.180
2.041 1.429 1.195
2.143 1.464 1.210
2.245 1.498 1.224
2.347 1.532 1.238
2.449 1.565 1.251
2.551 1.597 1.264
2.653 1.629 1.276
2.755 1.660 1.288
2.857 1.690 1.300
2.959 1.720 1.312
3.061 1.750 1.323
3.163 1.779 1.334
3.265 1.807 1.344
3.367 1.835 1.355
3.469 1.863 1.365
3.571 1.890 1.375
3.673 1.917 1.384
3.776 1.943 1.394
3.878 1.969 1.403
3.980 1.995 1.412
4.082 2.020 1.421
4.184 2.045 1.430
4.286 2.070 1.439
4.388 2.095 1.447
4.490 2.119 1.456
4.592 2.143 1.464
4.694 2.167 1.472
4.796 2.190 1.480
4.898 2.213 1.488
5.000 2.236 1.495

51
source/test.csv Normal file
View File

@ -0,0 +1,51 @@
,0,1,2
0,0.0,0.0,0.0
1,0.10204081632653061,0.31943828249996997,0.5651887140592688
2,0.20408163265306123,0.45175395145262565,0.672126440078521
3,0.30612244897959184,0.5532833351724882,0.7438301789874407
4,0.40816326530612246,0.6388765649999399,0.7992975447228272
5,0.5102040816326531,0.7142857142857143,0.8451542547285166
6,0.6122448979591837,0.7824607964359516,0.884568141205612
7,0.7142857142857143,0.8451542547285166,0.9193227152249185
8,0.8163265306122449,0.9035079029052513,0.9505303271885918
9,0.9183673469387755,0.9583148474999099,0.9789355686151718
10,1.0204081632653061,1.0101525445522108,1.005063452997974
11,1.1224489795918369,1.0594569267279519,1.029299240613706
12,1.2244897959183674,1.1065666703449764,1.0519347272264454
13,1.3265306122448979,1.1517511068997928,1.0731966767092567
14,1.4285714285714286,1.1952286093343936,1.0932651139290934
15,1.5306122448979593,1.2371791482634837,1.1122855515844319
16,1.6326530612244898,1.2777531299998799,1.1303774281185377
17,1.7346938775510203,1.3170777796132696,1.147640091497883
18,1.836734693877551,1.355261854357877,1.1641571433263969
19,1.9387755102040818,1.3923991921155663,1.1799996576760379
20,2.0408163265306123,1.4285714285714286,1.1952286093343936
21,2.142857142857143,1.4638501094227998,1.2098967350244398
22,2.2448979591836737,1.498298354528788,1.224049980404717
23,2.3469387755102042,1.5319721849662298,1.237728639470797
24,2.4489795918367347,1.5649215928719031,1.2509682621361355
25,2.5510204081632653,1.5971914124998499,1.2638003847522161
26,2.6530612244897958,1.6288220358559113,1.276253123739923
27,2.7551020408163267,1.6598500055174645,1.2883516622092992
28,2.857142857142857,1.6903085094570331,1.3001186520687384
29,2.9591836734693877,1.720227796970328,1.3115745487658443
30,3.0612244897959187,1.749635530559413,1.3227378918589325
31,3.163265306122449,1.778557085426962,1.3336255416821328
32,3.2653061224489797,1.8070158058105026,1.344252880157042
33,3.36734693877551,1.83503322552359,1.3546339821234332
34,3.4693877551020407,1.8626292586293283,1.3647817622716565
35,3.5714285714285716,1.889822365046136,1.3747081017605651
36,3.673469387755102,1.9166296949998198,1.3844239578249937
37,3.7755102040816326,1.9430672155336348,1.3939394590632819
38,3.8775510204081636,1.9691498217271746,1.4032639886091194
39,3.979591836734694,1.9948914348241344,1.41240625700403
40,4.081632653061225,2.0203050891044216,1.4213743662752687
41,4.183673469387755,2.045403009039479,1.4301758664721897
42,4.285714285714286,2.0701966780270626,1.438817805709626
43,4.387755102040816,2.0946968998021687,1.4473067745996937
44,4.4897959183673475,2.1189138534559038,1.4556489458162307
45,4.591836734693878,2.142857142857143,1.4638501094227998
46,4.6938775510204085,2.166535841157586,1.4719157045013094
47,4.795918367346939,2.1899585309651273,1.4798508475400916
48,4.8979591836734695,2.2131333406899527,1.4876603579748815
49,5.0,2.23606797749979,1.4953487812212205
1 0 1 2
2 0 0.0 0.0 0.0
3 1 0.10204081632653061 0.31943828249996997 0.5651887140592688
4 2 0.20408163265306123 0.45175395145262565 0.672126440078521
5 3 0.30612244897959184 0.5532833351724882 0.7438301789874407
6 4 0.40816326530612246 0.6388765649999399 0.7992975447228272
7 5 0.5102040816326531 0.7142857142857143 0.8451542547285166
8 6 0.6122448979591837 0.7824607964359516 0.884568141205612
9 7 0.7142857142857143 0.8451542547285166 0.9193227152249185
10 8 0.8163265306122449 0.9035079029052513 0.9505303271885918
11 9 0.9183673469387755 0.9583148474999099 0.9789355686151718
12 10 1.0204081632653061 1.0101525445522108 1.005063452997974
13 11 1.1224489795918369 1.0594569267279519 1.029299240613706
14 12 1.2244897959183674 1.1065666703449764 1.0519347272264454
15 13 1.3265306122448979 1.1517511068997928 1.0731966767092567
16 14 1.4285714285714286 1.1952286093343936 1.0932651139290934
17 15 1.5306122448979593 1.2371791482634837 1.1122855515844319
18 16 1.6326530612244898 1.2777531299998799 1.1303774281185377
19 17 1.7346938775510203 1.3170777796132696 1.147640091497883
20 18 1.836734693877551 1.355261854357877 1.1641571433263969
21 19 1.9387755102040818 1.3923991921155663 1.1799996576760379
22 20 2.0408163265306123 1.4285714285714286 1.1952286093343936
23 21 2.142857142857143 1.4638501094227998 1.2098967350244398
24 22 2.2448979591836737 1.498298354528788 1.224049980404717
25 23 2.3469387755102042 1.5319721849662298 1.237728639470797
26 24 2.4489795918367347 1.5649215928719031 1.2509682621361355
27 25 2.5510204081632653 1.5971914124998499 1.2638003847522161
28 26 2.6530612244897958 1.6288220358559113 1.276253123739923
29 27 2.7551020408163267 1.6598500055174645 1.2883516622092992
30 28 2.857142857142857 1.6903085094570331 1.3001186520687384
31 29 2.9591836734693877 1.720227796970328 1.3115745487658443
32 30 3.0612244897959187 1.749635530559413 1.3227378918589325
33 31 3.163265306122449 1.778557085426962 1.3336255416821328
34 32 3.2653061224489797 1.8070158058105026 1.344252880157042
35 33 3.36734693877551 1.83503322552359 1.3546339821234332
36 34 3.4693877551020407 1.8626292586293283 1.3647817622716565
37 35 3.5714285714285716 1.889822365046136 1.3747081017605651
38 36 3.673469387755102 1.9166296949998198 1.3844239578249937
39 37 3.7755102040816326 1.9430672155336348 1.3939394590632819
40 38 3.8775510204081636 1.9691498217271746 1.4032639886091194
41 39 3.979591836734694 1.9948914348241344 1.41240625700403
42 40 4.081632653061225 2.0203050891044216 1.4213743662752687
43 41 4.183673469387755 2.045403009039479 1.4301758664721897
44 42 4.285714285714286 2.0701966780270626 1.438817805709626
45 43 4.387755102040816 2.0946968998021687 1.4473067745996937
46 44 4.4897959183673475 2.1189138534559038 1.4556489458162307
47 45 4.591836734693878 2.142857142857143 1.4638501094227998
48 46 4.6938775510204085 2.166535841157586 1.4719157045013094
49 47 4.795918367346939 2.1899585309651273 1.4798508475400916
50 48 4.8979591836734695 2.2131333406899527 1.4876603579748815
51 49 5.0 2.23606797749979 1.4953487812212205