diff options
Diffstat (limited to '2219/CH11/EX11.2/Ex11_2.sce')
-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);
+//------------------------------------------------------------------------------
|