- 4

How can i calculate the distance between the earth and sun in python

12th Sep 2019, 8:52 PM
Chukwuemika Victor Uzoekwe
Chukwuemika Victor Uzoekwe - avatar
4 Respostas
+ 2
With what numbers? With earth being 0 or something else? Or do you want to actually somehow it to find an exact number?
12th Sep 2019, 9:01 PM
Ole113
Ole113 - avatar
0
Ole113 I'm not sure. that's why I'm asking
12th Sep 2019, 9:34 PM
Chukwuemika Victor Uzoekwe
Chukwuemika Victor Uzoekwe - avatar
0
Aymane how did you come about your answer?
12th Sep 2019, 9:34 PM
Chukwuemika Victor Uzoekwe
Chukwuemika Victor Uzoekwe - avatar
0
Well we would need to know Earth movement speed around sun or know the time it takes light to reach Earth from the Sun. If we around knew Earth movement speed around the Sun, we could assume that Earth flight track is a circle: x = movement speed of earth around the sun as meters/seconds Because it takes earth 31557600 seconds to move one time around the Sun. The circuit of Earth's flight track is: x * 31557600m ~ x * 32Mm long Because the formula for length of circle's circuit is: 2πr, then the distance of Earth and Sun is: r ~ x * 5225548m ~ x * 5.2Mm. Distance between Earth and Sun is: x5.2Mm, when x is Earth's speed as meters in second. If we knew the time for light to reach Earth from the Sun, we know speed of light because someone decided to build a pyramid in the cordinate of that value. c ~ 299 792 458 m/s x = time for light to reach Earth from the Sun in seconds. r = x * c ~ x * 299 792 458 m ~ x0.3Gm
12th Sep 2019, 9:46 PM
Seb TheS
Seb TheS - avatar