Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a functional programme in python: Orbits of one body around another, such as a planet around the Sun, need not be circular. In general,

Write a functional programme in python:image text in transcribed

Orbits of one body around another, such as a planet around the Sun, need not be circular. In general, they take the form of an ellipse. If you are given the distance of closest approach, 11, the perihelion, of the orbiting body and its linear velocity v1 at that point, then any other property of the orbit can be calculated from these two. Write a function 'orbit)' that takes two input values in the order perihelion distance and velocity and calculates the following numbers o Ellipse semi-major axis a o semi-minor axis b o orbital period T and o orbital eccentricity e Test your function (not on moodle) by confirming that the orbital period of Earth is one year (perihelion distance:1.471 x 1011 m, v1 3.0287 x 104 ms-1, G 6.67 x 10-11 m3kg1s2 and the Sun's mass is M 1.9891 x 1030 kg) The speed at the most distant point of the orbit is the smaller root of the quadratic equation 2GM 2GM 01 1 Get /2 from l2-l1v1/v2 For the remaining terms the formulae are a ( 12) 2 7T a b 0 /2+1 Return the tuple with values for a, b, T and e (in that order, in SI units)

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

Step: 3

blur-text-image

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

Nested Relations And Complex Objects In Databases Lncs 361

Authors: Serge Abiteboul ,Patrick C. Fischer ,Hans-Jorg Schek

1st Edition

3540511717, 978-3540511717

More Books

Students also viewed these Databases questions