

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


This problem set will give you some experience with root finding and/or least-squares fitting. You may do either question 1 or question 2. If you do both, you will get a maximum of 2 points of extra credit.
(a) Write a program to explore this system by computing the effective gravity (a vector) and potential (a scalar) at specific grid points in the xy-plane. Use units such that the gravitational constant G ≡ 1. The program should take as input the mass of both bodies and their separation. You may “hardwire” the grid dimensions into your code if you wish. The output should be the potential and x and y components of the acceleration at each grid point. (b) Use your favorite plotting program to plot vectors (for the effective acceleration) and contours (for the effective potential) for the cases where m 1 = 3, m 2 = 2, d = 1 and m 1 = 100, m 2 = 1, d = 5. (c) Use a simple root solver to determine the locations of the Lagrange points for both these cases, using your a priori knowledge of their approximate locations (i.e., first do a search along the y = 0 axis for the L 1 , L 2 , and L 3 points, then along the x = (x 1 + x 2 )/2 axis for the L 4 and L 5 points. Watch out for singularities!...).
φ(ν) =
π
αL (ν − ν 0 )^2 + α^2 L
and then a Gaussian φ(ν) =
αD
ln 2 π
e−(ln 2)(ν−ν^0 )
(^2) /α (^2) D (2)
to the data in
http://www.astro.umd.edu/~dcr/Courses/ASTR615/ps3.dat
which is in the format ν φ e, where ν is the frequency, φ is the line strength, and e is the estimated error in each φ.
(a) What values of αL and ν 0 do you get for the Lorentzian, and what values of αD and ν 0 do you get for the Gaussian? Also report the error estimates for the fit parameters. Which model is a better fit to the data? (b) Plot the data and the fits. Be sure to include the errorbars.