Question: python programming: Exercise 2.6: Planetary orbits The orbit in space of one body around another, such as a planet around the Sun, need not be

 python programming: Exercise 2.6: Planetary orbits The orbit in space of
one body around another, such as a planet around the Sun, need
python programming:

Exercise 2.6: Planetary orbits The orbit in space of one body around another, such as a planet around the Sun, need not be circular. In general it takes the form of an ellipse, with the body sometimes closer in and sometimes further out. If you are given the distance li of closest approach that a planet makes to the Sun, also called its perihelion, and its linear velocity vi at perihelion, then any other property of the orbit can be calculated from these two as follows. . b) Given the values of vi, ly, and l2, other parameters of the orbit are given by simple formulas that can be derived from Kepler's laws and the fact that the orbit is an ellipse: Semi-major axis: Q= = (1 + (2), Semi-minor axis: b= Veile, 27tab Orbital period: T= livi l2h Orbital eccentricity: latli Write a program that asks the user to enter the distance to the Sun and velocity at perihelion, then calculates and prints the quantities 12,02, T, and e. c) Test your program by having it calculate the properties of the orbits of the Earth (for which (1 = 1.4710 x 101 m and di = 3.0287 x 10ms) and Halley's comet (i = 8.7830 x 100 m and vi = 5.4529 X 10^ms-). Among other things, you should find that the orbital period of the Earth is one year and that of Halley's e = comet is about 76 years

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!