summaryrefslogtreecommitdiff
path: root/998/CH29/EX29.51/Ex51.sce
blob: 91755e9da3b2e50d83e4c366ff5b716ac2619f8e (plain)
1
2
3
4
5
6
7
8
9
10
//Ex:51
clc;
clear;
close;
r_a=30000+6370;//apogee in km
r_p=200+6370;//perigee in km
e=(r_a-r_p)/(r_a+r_p);// eccentricity
printf("The apogee=%f km",r_a);
printf("\n The perigee=%f km",r_p);
printf("\n The orbital eccentricity=%f",e);