From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 914/CH4/EX4.4/ex4_4.sce | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 914/CH4/EX4.4/ex4_4.sce (limited to '914/CH4/EX4.4/ex4_4.sce') diff --git a/914/CH4/EX4.4/ex4_4.sce b/914/CH4/EX4.4/ex4_4.sce new file mode 100755 index 000000000..46c1235a6 --- /dev/null +++ b/914/CH4/EX4.4/ex4_4.sce @@ -0,0 +1,16 @@ +clc; +warning("off"); +printf("\n\n example4.4 - pg101"); +// given +x1=0; //[cm] +x2=30; //[cm] +p1=0.3; //[atm] +p2=0.03; //[atm] +D=0.164; //[am^2/sec] +R=82.057; //[cm^3*atm/mol*K] +T=298.15; //[K] +// using the formula Nax*int(dx/Ax)=-(D/RT)*int(1*dpa) +a=integrate("1/((%pi/4)*(10-(x/6))^2)","x",x1,x2); +b=integrate("1","p",p1,p2); +Nax=-((D/(R*T))*b)/a; +printf("\n\n Nax=%6emol/sec=%3emol/h \n the plus sign indicates diffusion to the right",Nax,Nax*3600); -- cgit