summaryrefslogtreecommitdiff
path: root/2219/CH11/EX11.10/Ex11_10.sce
diff options
context:
space:
mode:
Diffstat (limited to '2219/CH11/EX11.10/Ex11_10.sce')
-rwxr-xr-x2219/CH11/EX11.10/Ex11_10.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/2219/CH11/EX11.10/Ex11_10.sce b/2219/CH11/EX11.10/Ex11_10.sce
new file mode 100755
index 000000000..88bf5b71d
--- /dev/null
+++ b/2219/CH11/EX11.10/Ex11_10.sce
@@ -0,0 +1,16 @@
+// Chapter 11 example 10
+//------------------------------------------------------------------------------
+clc;
+clear;
+// Given data
+e = 0.5; // orbit eccentricity
+ae = 14000; // from fig. the distance from center of ellipse to the centre of earth
+
+// Calculations
+a = ae/e; // semi major axis
+apogee = a*(1 + e); // Apogee in km
+perige = a*(1 - e); // perigee in km
+
+// output
+mprintf('Apogee = %d km\n Perigee = %d km',apogee,perige);
+//------------------------------------------------------------------------------