Question: 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.
 Use a user-defined Simpson's rule function to solve the problems below.

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!