diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1427/CH3/EX3.1/3_1.sce | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '1427/CH3/EX3.1/3_1.sce')
-rw-r--r-- | 1427/CH3/EX3.1/3_1.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/1427/CH3/EX3.1/3_1.sce b/1427/CH3/EX3.1/3_1.sce new file mode 100644 index 000000000..1cad54dff --- /dev/null +++ b/1427/CH3/EX3.1/3_1.sce @@ -0,0 +1,13 @@ +//ques-3.1
+//Calculating weight average and number average molecular mass of polymer
+clc
+n1=10; m1=5000; //Type-1
+n2=20; m2=7500; //Type-2
+n3=20; m3=10000; //Type-3
+n4=25; m4=15000; //Type-4
+n5=20; m5=20000; //Type-5
+n6=5; m6=25000; //Type-6
+N_avg=(n1*m1+n2*m2+n3*m3+n4*m4+n5*m5+n6*m6)/(n1+n2+n3+n4+n5+n6);//Number-average
+W_avg=(n1*m1^2+n2*m2^2+n3*m3^2+n4*m4^2+n5*m5^2+n6*m6^2)/(n1*m1+n2*m2+n3*m3+n4*m4+n5*m5+n6*m6);//Weight average
+printf("The number-average and weight-average molecular mass of polymer are %d and %d repectively.",N_avg,W_avg);
+
|