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 --- 557/CH7/EX7.4/4.sce | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 557/CH7/EX7.4/4.sce (limited to '557/CH7/EX7.4/4.sce') diff --git a/557/CH7/EX7.4/4.sce b/557/CH7/EX7.4/4.sce new file mode 100755 index 000000000..b7adedbfe --- /dev/null +++ b/557/CH7/EX7.4/4.sce @@ -0,0 +1,17 @@ +funcprot(0);clc; //Example 7.4 + +//Initializing the variables +a = 0.02; +r = 0.05; +V0 = 1; +x = 135; // Theta +function[Z] = shi(r,x) + Z = V0*sind(x)*(r - ((a^2)/r)); +endfunction +h = 0.0001; + +//Calculations +Vr = 57*(shi(r,x+h)-shi(r,x))/(r*h); +Vx = -1*(shi(r+h,x)-shi(r,x))/h; + +disp(Vr, 'Radial Velocity (m/s):',Vx, 'Normal component of velocity (m/s):'); \ No newline at end of file -- cgit