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.2 | |
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.2')
-rwxr-xr-x | 2219/CH11/EX11.2/Ex11_2.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/2219/CH11/EX11.2/Ex11_2.sce b/2219/CH11/EX11.2/Ex11_2.sce new file mode 100755 index 000000000..2ec1c21e9 --- /dev/null +++ b/2219/CH11/EX11.2/Ex11_2.sce @@ -0,0 +1,15 @@ +// Chapter 11 example 2
+//------------------------------------------------------------------------------
+clc;
+clear;
+
+// Given data
+Ap_Pe_diff = 30000; // difference between apogee and perigee in Km
+a = 16000; // semi major axis of orbit
+
+// Calculations
+e = Ap_Pe_diff/(2*a); // Eccentricity
+
+// Output
+mprintf('Eccentricity = %3.2f',e);
+//------------------------------------------------------------------------------
|