Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

can I get some help please... Your task is to write a Python program that uses numerical methods to simulate the motion of a 1-kg

can I get some help please...

Your task is to write a Python program that uses numerical methods to simulate the motion of a 1-kg sphere that is in motion about the Sun. Assume that there are no other objects (like planets or comets) to interfere with your simulation. The mass of the Sun is 2.0 1030 kg. The universal gravitational constant, G, is equal to 6.67 10-11 m3 kg-1 s-2. One A.U. is equal to 150 million km. For this assignment your program will do the following . . .

Task 1 1. It will prompt the user for the initial distance from the Sun (in A.U.) Assuming that a right-handed xy-coordinate system will be used in the solution of this problem, the initial position of the sphere will always be along the x-axis (yo = 0). [Keep in mind that all your calculations will be in MKS units!!!] 2. It will prompt the user for the initial velocity of the sphere (in km/s). Assuming that a right-handed xy-coordinate system will be used in the solution of this problem, the initial velocity of the sphere will always be in the positive y-direction (vxo = 0). [Keep in mind that all your calculations will be in MKS units!!!] 3. It will plot the trajectory of the sphere about the Sun on an xy-plot. The units on these axes will be A.U. Make sure that you integrate long enough to complete at least one full orbit for the non-hyperbolic trajectories. 4. You will create 3 plots. The first will be a recreation of the Earths (circular) orbit, the second will be an orbit that is unmistakably elliptical, and third will be an orbit that is hyperbolic.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Systems Analysis And Synthesis Bridging Computer Science And Information Technology

Authors: Barry Dwyer

1st Edition

0128054492, 9780128054499

More Books

Students also viewed these Databases questions

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago