diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /615/CH10/EX10.1 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '615/CH10/EX10.1')
-rwxr-xr-x | 615/CH10/EX10.1/10_1.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/615/CH10/EX10.1/10_1.sce b/615/CH10/EX10.1/10_1.sce new file mode 100755 index 000000000..23a164ee2 --- /dev/null +++ b/615/CH10/EX10.1/10_1.sce @@ -0,0 +1,16 @@ +//polymer chemistry//
+//example 10.1//
+N1=5;//no of molecules//
+N2=10;
+N3=20;
+N4=20;
+N5=10;
+M1=5000;//molecular mass of each molecule//
+M2=6000;
+M3=10000;
+M4=15000;
+M5=25000;
+M=(M1*N1+M2*N2+M3*N3+M4*N4+M5*N5)/(N1+N2+N3+N4+N5);//formula for number average molecular mass//
+printf("The number average molecular mass is %f",M);
+Mw=(N1*M1^2+N2*M2^2+N3*M3^2+N4*M4^2+N5*M5^2)/(M1*N1+M2*N2+M3*N3+M4*N4+M5*N5);//formula of weight-average molecular mass//
+printf("\nThe weight average molecular mass is %f",Mw);
\ No newline at end of file |