summaryrefslogtreecommitdiff
path: root/2219/CH11/EX11.14/Ex11_14.sce
diff options
context:
space:
mode:
Diffstat (limited to '2219/CH11/EX11.14/Ex11_14.sce')
-rwxr-xr-x2219/CH11/EX11.14/Ex11_14.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/2219/CH11/EX11.14/Ex11_14.sce b/2219/CH11/EX11.14/Ex11_14.sce
new file mode 100755
index 000000000..11e76cbaa
--- /dev/null
+++ b/2219/CH11/EX11.14/Ex11_14.sce
@@ -0,0 +1,14 @@
+// Chapter 11 example 14
+//------------------------------------------------------------------------------
+clc;
+clear;
+// Given data
+ra_S_rp = 50000; // sum of apogee and perigee distance
+ra_D_rp = 30000; // difference of apogee and perigee distances
+
+// Calculations
+e = ra_D_rp/ra_S_rp; // eccentricity
+
+// Output
+mprintf('Target eccentricity = %3.1f',e);
+//------------------------------------------------------------------------------