summaryrefslogtreecommitdiff
path: root/2409/CH2/EX2.3/Ex2_3.sce
blob: 1a91bf3320f8ec293d9bcde8ffa2689f1a0f06cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

//Variable Declaration

R=6371   //Mean Earth's radius(km)
e=0.0011501  //Eccentricity
a=7192.3     //Semimajor axis(km)

//Calculation

ra=a*(1+e)   //Radius Vector at apogee(km)
rp=a*(1-e)   //Radius Vector at perigee(km)
ha=ra-R      //Apogee height(km)
hp=rp-R      //Perigee height(km)


//Result
printf("The Apogee height for given orbital parameters is: %.2f km",ha)
printf("The Apogee height for given orbital parameters is: %.2f km",hp)