summaryrefslogtreecommitdiff
path: root/647/CH9/EX9.7/Example9_7.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:38:01 +0530
committerprashantsinalkar2017-10-10 12:38:01 +0530
commitf35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch)
treeeb72842d800ac1233e9d890e020eac5fd41b0b1b /647/CH9/EX9.7/Example9_7.sce
parent7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff)
downloadScilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip
updated the code
Diffstat (limited to '647/CH9/EX9.7/Example9_7.sce')
-rwxr-xr-x647/CH9/EX9.7/Example9_7.sce98
1 files changed, 49 insertions, 49 deletions
diff --git a/647/CH9/EX9.7/Example9_7.sce b/647/CH9/EX9.7/Example9_7.sce
index 6a863ed28..b809885f8 100755
--- a/647/CH9/EX9.7/Example9_7.sce
+++ b/647/CH9/EX9.7/Example9_7.sce
@@ -1,49 +1,49 @@
-clear;
-clc;
-
-// Example: 9.7
-// Page: 342
-
-printf("Example: 9.7 - Page: 342\n\n");
-
-// Solution
-
-//*****Data******//
-// Data = [X1 V*10^6(cubic m/mol)];
-Data = [0 20;0.2 21.5;0.4 24.0;0.6 27.4;0.8 32.0;1 40];
-//************//
-
-scf(1.1);
-plot(Data(:,1),Data(:,2));
-title("Example 9.7");
-xlabel("Mole fraction");
-ylabel("Molar Volume*10^(6)");
-xgrid();
-
-// Solution (i)
-printf("For X1 = 0.5\n");
-// A tangent is drawn to the curve at X1 = 0.5.
-// The intercept at X2 = 0 or X1 = 1, gives V1_bar.
-V1_bar1 = 33.8*10^(-6);// [cubic m/mol]
-// The intercept at X2 = 1 or X1 = 0, gives V2_bar.
-V2_bar1 = 17*10^(-6);// [cubic m/mol]
-printf("Partial molar volume of component 1 is %.2e cubic m/mol\n",V1_bar1);
-printf("Partial molar volume of component 2 is %.2e cubic m/mol\n",V2_bar1);
-printf("\n");
-
-// Solution (ii)
-printf("For X2 = 0.75\n");
-// A tangent is drawn to the curve at X1 = 0.75.
-// The intercept at X2 = 0 or X1 = 1, gives V1_bar.
-V1_bar2 = 36.6*10^(-6);// [cubic m/mol]
-// The intercept at X2 = 1 or X1 = 0, gives V2_bar.
-V2_bar2 = 12.4*10^(-6);// [cubic m/mol]
-point1 = [0 V1_bar1; 1 V2_bar1];
-point2 = [0 V1_bar2;1 V2_bar2];
-scf(2);
-plot(point1(:,1),point1(:,2),point2(:,1),point2(:,2));
-legend("X1 = 0.5","X1 = 0.75");
-xlabel("Mole fraction");
-ylabel("Molar Volume");
-printf("Partial molar volume of component 1 is %.2e cubic m/mol\n",V1_bar);
-printf("Partial molar volume of component 2 is %.2e cubic m/mol\n",V2_bar); \ No newline at end of file
+clear;
+clc;
+
+// Example: 9.7
+// Page: 342
+
+printf("Example: 9.7 - Page: 342\n\n");
+
+// Solution
+
+//*****Data******//
+// Data = [X1 V*10^6(cubic m/mol)];
+Data = [0 20;0.2 21.5;0.4 24.0;0.6 27.4;0.8 32.0;1 40];
+//************//
+
+scf(1.1);
+plot(Data(:,1),Data(:,2));
+title("Example 9.7");
+xlabel("Mole fraction");
+ylabel("Molar Volume*10^(6)");
+xgrid();
+
+// Solution (i)
+printf("For X1 = 0.5\n");
+// A tangent is drawn to the curve at X1 = 0.5.
+// The intercept at X2 = 0 or X1 = 1, gives V1_bar.
+V1_bar1 = 33.8*10^(-6);// [cubic m/mol]
+// The intercept at X2 = 1 or X1 = 0, gives V2_bar.
+V2_bar1 = 17*10^(-6);// [cubic m/mol]
+printf("Partial molar volume of component 1 is %.2e cubic m/mol\n",V1_bar1);
+printf("Partial molar volume of component 2 is %.2e cubic m/mol\n",V2_bar1);
+printf("\n");
+
+// Solution (ii)
+printf("For X2 = 0.75\n");
+// A tangent is drawn to the curve at X1 = 0.75.
+// The intercept at X2 = 0 or X1 = 1, gives V1_bar.
+V1_bar2 = 36.6*10^(-6);// [cubic m/mol]
+// The intercept at X2 = 1 or X1 = 0, gives V2_bar.
+V2_bar2 = 12.4*10^(-6);// [cubic m/mol]
+point1 = [0 V1_bar1; 1 V2_bar1];
+point2 = [0 V1_bar2;1 V2_bar2];
+scf(2);
+plot(point1(:,1),point1(:,2),point2(:,1),point2(:,2));
+legend("X1 = 0.5","X1 = 0.75");
+xlabel("Mole fraction");
+ylabel("Molar Volume");
+printf("Partial molar volume of component 1 is %.2e cubic m/mol\n",V1_bar2);
+printf("Partial molar volume of component 2 is %.2e cubic m/mol\n",V2_bar2); \ No newline at end of file