summaryrefslogtreecommitdiff
path: root/2219/CH11/EX11.14/Ex11_14.sce
blob: 11e76cbaacb1dc91d539937010337e1a86ca3a99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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);
//------------------------------------------------------------------------------