summaryrefslogtreecommitdiff
path: root/527/CH8/EX8.16
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /527/CH8/EX8.16
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '527/CH8/EX8.16')
-rwxr-xr-x527/CH8/EX8.16/8_16exam.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/527/CH8/EX8.16/8_16exam.sce b/527/CH8/EX8.16/8_16exam.sce
new file mode 100755
index 000000000..697bc3782
--- /dev/null
+++ b/527/CH8/EX8.16/8_16exam.sce
@@ -0,0 +1,19 @@
+//Engineering and Chemical Thermodynamics
+//Example 8.16
+//Page no :403
+
+clear ; clc;
+//Given
+A = 6349 ; //[J/mol]
+B = -384 ; //[J/mol]
+R = 8.314 ;
+T = 20 + 273 ; //[K]
+
+k = 0.000001 ;
+disp(" Example: 8.16 Page no : 403") ;
+function y816 = f816(x_a) , y816 = R * T * (1/x_a + 1/(1 - x_a)) - 2 * A +6 * B * (1 - 2 * x_a) + k
+endfunction
+ans1 = fsolve([0.1],f816) ;
+ans2 = fsolve([0.5],f816) ;
+
+printf("\n %.3f < x_a < %.3f ",ans1,ans2)