Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use a user - defined Simpson's rule function to solve the problems below. Do this in a single script file and report the results for

Use a user-defined Simpson's rule function to solve the problems below. Do this in a single script file and report the results for each part of the problem using fprintf. Make sure what you print out makes sense and includes appropriate units.
(a) The variation of gravitational acceleration, g, with altitude, y, is given by
g=R2(R+y)2g0
where R=6371km is the radius of the Earth, and g0=9.81ms2. The change in gravitational potential energy, U, is given by
U=0hmgdy
Determine the change in the potential energy of a satellite with a mass of 500kg that is raised from the surface of the Earth to a height of 800km.
(b) The orbit of Pluto is elliptical, with a semi-major axis of a=5.9065109km and a semi-minor axis of b=5.7208109km. The perimeter of the ellipse can be calculated with the integral
P=4a021-k2sin22d
where k=a2-b22a. Determine the distance Pluto travels in one orbit and calculate the average speed at which Pluto travels (in kmh) if one orbit takes about 248 year.
(c) Do the same integrals using MATLAB's built-in function integral. Compare the results.
image text in transcribed

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

Students also viewed these Databases questions

Question

Find the first and second derivatives. dr ds ds

Answered: 1 week ago

Question

politeness and modesty, as well as indirectness;

Answered: 1 week ago