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 /3856/CH12/EX12.1/Ex12_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 '3856/CH12/EX12.1/Ex12_1.sce')
-rw-r--r-- | 3856/CH12/EX12.1/Ex12_1.sce | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/3856/CH12/EX12.1/Ex12_1.sce b/3856/CH12/EX12.1/Ex12_1.sce new file mode 100644 index 000000000..f28db5d02 --- /dev/null +++ b/3856/CH12/EX12.1/Ex12_1.sce @@ -0,0 +1,32 @@ +//To Calculate the rate Constant for the Reaction
+
+//Example 12.1
+
+clc;
+clear;
+
+t=[0,2000,4000,6000,8000,10000,12000];//Time in seconds
+
+A=[1.5,1.26,1.07,0.92,0.81,0.72,0.65];//Absorbance
+
+A0=1.5;//Absorbance at t=0s
+
+Ainf=0.40;//Absorbance at t=infinity
+
+for i=1:6
+ x(i)=t(i);//Putting the x-axis as t/s
+end
+
+for i=1:6
+ y(i)=log((A(i)-Ainf)/(A0-Ainf));//Putting the y-axis as ln((At-Ainf)/(A0-Ainf))
+end
+
+plot(x,y);//Plotting the Graph between x-axis and y-axis
+
+xlabel("t/s", "fontsize", 2);//Putting the x-axis as t/s
+
+ylabel("ln((At-Ainf)/(A0-Ainf))", "fontsize", 2);//Putting the y-axis as ln((At-Ainf)/(A0-Ainf))
+
+m=-(y(2)-y(1))/(x(2)-x(1));//Calculating the slope (Rate Constant of Reaction) of Graph
+
+printf("The rate constant for the reaction = %.3f*10^-4 s^-1",m*10^4);
|