Due March 1.
As with the root finding homework, write your code in a flexible manner so that you can use it later for other problems, and choose your stopping criteria carefully.
The rotation curves (that is, rotation velocity vs. distance from the
center) for galaxies are observed to rise linearly close to the
center, and to be constant far from the center. A possible (but
dynamically, not well motivated) function which can be fit to such a
rotation curve is;
Using the Golden Search method, and assuming that
is 100
km/s, find the
that gives the best fit of the above formulae
to the following ``data'':
| 1 | 41.96 |
| 2 | 59.64 |
| 3 | 77.96 |
| 4 | 67.57 |
| 5 | 77.33 |
| 6 | 90.83 |
| 7 | 96.2 |
| 8 | 89.68 |
| 9 | 96.53 |
| 10 | 81.7 |
(This data will be available on the web site as
http://www.astro.washington.edu/astro497d/rot.dat.) As a criteria
for goodness of fit, use the standard least squares formulae:
Plot the ``trajectory'' of the Golden Search iterations by displaying
each iterate on a plot of
vs.
and connecting successive
points.
This document was generated using the LaTeX2HTML translator Version 99.2beta8 (1.43)
Copyright © 1993, 1994, 1995, 1996,
Nikos Drakos,
Computer Based Learning Unit, University of Leeds.
Copyright © 1997, 1998, 1999,
Ross Moore,
Mathematics Department, Macquarie University, Sydney.
The command line arguments were:
latex2html -split 0 hw4.tex
The translation was initiated by Tom Quinn on 2001-02-15