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 /2219/CH11/EX11.1/Ex11_1.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 '2219/CH11/EX11.1/Ex11_1.sce')
-rwxr-xr-x | 2219/CH11/EX11.1/Ex11_1.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/2219/CH11/EX11.1/Ex11_1.sce b/2219/CH11/EX11.1/Ex11_1.sce new file mode 100755 index 000000000..449c1abb4 --- /dev/null +++ b/2219/CH11/EX11.1/Ex11_1.sce @@ -0,0 +1,19 @@ +// Chapter 11 example 1
+//------------------------------------------------------------------------------
+clc;
+clear;
+
+// Given data
+h = 150; // height of satellite from earth in km
+G = 6.67*10^-11; // Gravitational constant
+M = 5.98*10^24; // mass of the earth in kg
+Re = 6370; // radius of earth in km
+
+// Calculations
+u = G*M
+V = sqrt(u/((Re + h)*10^3)) // orbital velocity
+V1 = V/1000; // orbital velocity in km/s
+
+// Output
+mprintf('Orbital velocity = %3.3f km/s',V1);
+//------------------------------------------------------------------------------
|