summaryrefslogtreecommitdiff
path: root/615/CH10/EX10.1
diff options
context:
space:
mode:
Diffstat (limited to '615/CH10/EX10.1')
-rwxr-xr-x615/CH10/EX10.1/10_1.sce16
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