blob: b151ba3d721179f73394930a34ba9936894b5728 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//Variable Declaration
NN=14.22296917 //Mean Motion (1/day)
u=3.986005*(10**14) //Earth's Gravitational COnstant(m^3/sec^2)
//Calculation
n0=(NN*2*3.142)/(24*60*60) //Mean Motion(rad/sec)
a=((u/n0**2)**(0.33333))/1000 //Radius of the orbit by kepler's 3rd law(km)
//Result
printf("The Semimajor axis for given satellite parameters is : %.2f km",a)
|