write in python Exercise 8.10 Many comets travel in highly elongated orbits around the Sun. For much
Fantastic news! We've Found the answer you've been seeking!
Question:
write in python
Transcribed Image Text:
Exercise 8.10 Many comets travel in highly elongated orbits around the Sun. For much of their lives they are far out in the solar system, moving very slowly, but on rare occasions their orbit brings them close to the Sun for a fly-by and for a brief period of time they move very fast indeed (check your textbook for a diagram). This is a classic example of a system for which an adaptive step size method is useful, because for the large periods of time when the comet is moving slowly we can use long time-steps, so that the program runs quickly, but short time-steps are crucial in the brief but fast-moving period close to the Sun. The differential equation obeyed by a comet is straightforward to derive. The force between the Sun, with mass M at the origin, and a comet of mass m with position vector is GMm/r in direction -Fr (ie., the direction towards the Sun), and hence Newton's second law tells us that Canceling the m and taking the x component we have m dr GMm = di = -GM and similarly for the other two coordinates. We can, however, throw out one of the coordinates because the comet stays in a single plane as it orbits. If we orient our axes so that this plane is perpendicular to the z-axis, we can forget about the z coordinate and we are left with just two second-order equations to solve: where r = x + y x=-GM =-GM a) Turn these two second-order equations into four first-order equations, using the methods you have learned. Type your response here or insert an image Pts 15 b) Write a program to solve your equations using the fourth-order Runge--Kutta method with a fixed step size. You will need to look up the mass of the Sun and Newton's gravitational constant G. As an initial condition, take a comet at coordinates x = 4 billion kilometers and y = 0 (which is somewhere out around the orbit of Neptune) with initial velocity x = 0 and y = 500ms. Make a graph showing the trajectory of the comet (i.e., a plot of y against x). Choose a fixed step size h that allows you to accurately calculate at least two full orbits of the comet. Since orbits are periodic, a good indicator of an accurate calculation is that successive orbits of the comet lie on top of one another on your plot. If they do not then you need a smaller value of h. Give a short description of your findings. What value of h did you use? What did you observe in your simulation? How long did the calculation take? Exercise 8.10 Many comets travel in highly elongated orbits around the Sun. For much of their lives they are far out in the solar system, moving very slowly, but on rare occasions their orbit brings them close to the Sun for a fly-by and for a brief period of time they move very fast indeed (check your textbook for a diagram). This is a classic example of a system for which an adaptive step size method is useful, because for the large periods of time when the comet is moving slowly we can use long time-steps, so that the program runs quickly, but short time-steps are crucial in the brief but fast-moving period close to the Sun. The differential equation obeyed by a comet is straightforward to derive. The force between the Sun, with mass M at the origin, and a comet of mass m with position vector is GMm/r in direction -Fr (ie., the direction towards the Sun), and hence Newton's second law tells us that Canceling the m and taking the x component we have m dr GMm = di = -GM and similarly for the other two coordinates. We can, however, throw out one of the coordinates because the comet stays in a single plane as it orbits. If we orient our axes so that this plane is perpendicular to the z-axis, we can forget about the z coordinate and we are left with just two second-order equations to solve: where r = x + y x=-GM =-GM a) Turn these two second-order equations into four first-order equations, using the methods you have learned. Type your response here or insert an image Pts 15 b) Write a program to solve your equations using the fourth-order Runge--Kutta method with a fixed step size. You will need to look up the mass of the Sun and Newton's gravitational constant G. As an initial condition, take a comet at coordinates x = 4 billion kilometers and y = 0 (which is somewhere out around the orbit of Neptune) with initial velocity x = 0 and y = 500ms. Make a graph showing the trajectory of the comet (i.e., a plot of y against x). Choose a fixed step size h that allows you to accurately calculate at least two full orbits of the comet. Since orbits are periodic, a good indicator of an accurate calculation is that successive orbits of the comet lie on top of one another on your plot. If they do not then you need a smaller value of h. Give a short description of your findings. What value of h did you use? What did you observe in your simulation? How long did the calculation take?
Expert Answer:
Posted Date:
Students also viewed these programming questions
-
A research laboratory receives delivery of a new custom-made cylindrical thin-wall pressure vessel. The pressure vessel has inner radius R = 300 mm, and wall thickness t = 10 mm. The vessel is made...
-
Why are surface-roughness design requirements in engineering so broad? Give appropriate examples.
-
To include the personal assets and transactions of a businesss owner in the records and reports of the business would conflict with the: a. Matching principle. b. Realization principle. c. Business...
-
Insurance is a waste of money. If and when you suffer a financial loss because of an accident or some other event, you can pay for it from your savings account. Do you agree or disagree with this...
-
For the year ending December 31, 2011, Mount Inc. reports net income $120,000 and dividends $85,000. Prepare the retained earnings statement for the year assuming the balance in retained earnings on...
-
. Vice President for Sales and Marketing at Waterways Corporation is planning for production needs to meet sales demand in the coming year. He is also trying to determine howthe company's pro?ts...
-
Sunset co has been investing heavily in real estate. Its financial structure is as follows it has 100 million dollars of debt, its equity is valued at 5 million dollars (each share is 5 dollars) and...
-
You have found an asset with an arithmetic average return of 1 3 . 3 0 percent and a geometric average return of 1 0 . 3 8 percent. Yourobservation period is 3 0 years. What is your best estimate of...
-
A. What is the total percentage return for an investor who purchased a stock for $8.8, received $1.39 in dividend payments, and sold the stock for $7.65? B. A stock has monthly returns of -13.15%,...
-
Discuss the logistics of opening an agency including, What are the procedures for securing insurance credentialing for at least one private insurance company and Medicaid? How will your center...
-
2. A communications satellite is 36,000km from Earth and there is a half-duplex radio link between a station on Earth and a receiver on the satellite. The radio link has a bandwidth of 50,000 bits...
-
All animals are heterotrophs that ingest their food. Somebiologists have speculated that the first animal to actively huntwas a flatworm-like animal. How are flatworms different from otherearly...
-
In year 1, Adam borrowed $500,000 on an unsecured revolving line of credit. The stated rate of interest on this line is 4%, fixed. Adam used the funds from this loan as follows: Purchaso of...
-
In July 2013, cnet.com listed the battery life (in hours) and luminous intensity (i. e., screen brightness, in cd/m2) for a sample of tablet computers. We want to know if screen brightness is...
-
2. Fluor, an engineering and construction company, was awarded a $1 billion project to build a coal gasification plant in South Africa. Fluor signed an agreement with a South African client that...
-
3. Do you love ice cream? Here is an opportunity for you! For only $800, you can buy a cow from Berkshire Ice Cream. The company gets milk from the cow and you get to share in the profits from the...
-
4. ETHICS ETS Payphones, Inc., sold pay phones to the public. The company then leased back the pay phones from the purchaser, promising a fixed 14 percent annual return on their investment. Although...
![Mobile App Logo](https://dsd5zvtm8ll6.cloudfront.net/includes/images/mobile/finalLogo.png)
Study smarter with the SolutionInn App