summaryrefslogtreecommitdiff
path: root/2939/CH4/EX4.33/Ex4_33.sce
diff options
context:
space:
mode:
Diffstat (limited to '2939/CH4/EX4.33/Ex4_33.sce')
-rwxr-xr-x2939/CH4/EX4.33/Ex4_33.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/2939/CH4/EX4.33/Ex4_33.sce b/2939/CH4/EX4.33/Ex4_33.sce
new file mode 100755
index 000000000..76b3960a9
--- /dev/null
+++ b/2939/CH4/EX4.33/Ex4_33.sce
@@ -0,0 +1,19 @@
+
+//Ex4_33
+clc;
+
+// Given:
+ax0 =1; //assume
+tx = 2; //hrs
+ty = 1; //hrs
+// Solution:
+// general equation connecting Ax and Ay is
+// Ax(n) = (ky * Ax(0) * (exp(-kx * t) - exp(-ky * t))/ (ky - kx)) + Ay(0) * exp(-ky * t)
+ax0 = 1;
+ay4 = (ax0 * (0.693/1) * ((1/4)-(1/16)))/((0.693/1)-(0.693/2)) + ax0 * (1/16);
+
+ax4 = (1* ax0)/4;
+
+proportion = (ay4 * 100)/(ay4 + ax4);
+
+printf("The proportion of ay4 at the end of 4 hrs is %f",proportion)