summaryrefslogtreecommitdiff
path: root/3689/CH18/EX18.2/18_2.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3689/CH18/EX18.2/18_2.sce
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 '3689/CH18/EX18.2/18_2.sce')
-rw-r--r--3689/CH18/EX18.2/18_2.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/3689/CH18/EX18.2/18_2.sce b/3689/CH18/EX18.2/18_2.sce
new file mode 100644
index 000000000..cfa6c778a
--- /dev/null
+++ b/3689/CH18/EX18.2/18_2.sce
@@ -0,0 +1,18 @@
+////
+//Variable Declaration
+Ca0 = list(2.3e-4,4.6e-4,9.2e-4) //Initial Concentration of A, M
+Cb0 = list(3.1e-5,6.2e-5,6.2e-5) //Initial Concentration of B, M
+Ri = list(5.25e-4,4.2e-3,1.68e-2) //Initial rate of reaction, M
+
+//Calculations
+alp = log(Ri(2)/Ri(3))/log(Ca0(2)/Ca0(3))
+beta = (log(Ri(1)/Ri(2)) - 2*log((Ca0(1)/Ca0(2))))/(log(Cb0(1)/Cb0(2)))
+k = Ri(3)/(Ca0(3)**2*Cb0(3)**beta)
+
+//REsults
+printf("\n Order of reaction with respect to reactant A: %3.2f",alp)
+
+printf("\n Order of reaction with respect to reactant A: %3.2f",beta)
+
+printf("\n Rate constant of the reaction: %4.3e 1./(M.s)",k)
+