diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /557/CH7/EX7.4/4.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '557/CH7/EX7.4/4.sce')
-rwxr-xr-x | 557/CH7/EX7.4/4.sce | 17 |
1 files changed, 17 insertions, 0 deletions
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 |