summaryrefslogtreecommitdiff
path: root/24/CH14/EX14.6/Example14_6.sce
blob: 0442a743df77ed27fc32a3b5be74f61270fafdf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
exec ("Gravitation.sci",-1)

//Given that
T = 76 * 365 * 24 * 60 * 60 //time period in seconds (converting from years)

//Sample Problem 6a
printf("**Sample Problem 6a**\n")
//We know that Ra + Re  = 2*a
Rp = 8.9 * 10^10 //in meter
a = KeplerRadius(Ms,T)
//therefore
Ra = 2*a -Rp //in meter
printf("The Aphelion distance is equal to %em\n", Ra)

//Sample Problem 6b
printf("\n**Sample Problem 6b**\n")
//we know that e*a = a - Rp
e = 1 - Rp/a
printf("The eccentricity of the path is %e ", e)