summaryrefslogtreecommitdiff
path: root/1427/CH3/EX3.8
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1427/CH3/EX3.8
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-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.8')
-rw-r--r--1427/CH3/EX3.8/3_8.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/1427/CH3/EX3.8/3_8.sce b/1427/CH3/EX3.8/3_8.sce
new file mode 100644
index 000000000..70603e74e
--- /dev/null
+++ b/1427/CH3/EX3.8/3_8.sce
@@ -0,0 +1,15 @@
+//ques-3.8
+//Calculating weight average and number average molecular mass of polymer
+clc
+//n=number of repeat units
+M=42;//Molar mass
+//N=number of molecules in 100
+n1=400; N1=25;//Type-1
+n2=800; N2=35;//Type-2
+n3=600; N3=40;//Type-3
+m1=n1*M;//Mass of Type-1
+m2=n2*M;//Mass of Type-2
+m3=n3*M;//Mass of Type-3
+N_avg=(n1*m1+n2*m2+n3*m3)/(n1+n2+n3);//Number-average
+W_avg=(n1*m1^2+n2*m2^2+n3*m3^2)/(n1*m1+n2*m2+n3*m3);//Weight-average
+printf("Number-average and weight-average molecular masses of polymer are %d and %d respectively.",N_avg,W_avg);