summaryrefslogtreecommitdiff
path: root/2409/CH2/EX2.3/Ex2_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '2409/CH2/EX2.3/Ex2_3.sce')
-rwxr-xr-x2409/CH2/EX2.3/Ex2_3.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/2409/CH2/EX2.3/Ex2_3.sce b/2409/CH2/EX2.3/Ex2_3.sce
new file mode 100755
index 000000000..1a91bf332
--- /dev/null
+++ b/2409/CH2/EX2.3/Ex2_3.sce
@@ -0,0 +1,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)
+