Hi

Having some problems with setting this one up.

According to Keplerīs first law, a comet should have an elliptic, parabolic or hyperbolic orbit(with gravitational attractions from planets ignored). In suitable polar coordinates, the position $\displaystyle (r,\phi) $ of a comet satisfies an equation of the form $\displaystyle r = \beta +e(r\cdot cos(\phi)) $ , where $\displaystyle \beta $ is a constant and "e" is the eccentricity of the orbit, with $\displaystyle 0 \leq e < 1 $ for an ellipse, e=1 for a parabola and e > 1 for a hyperbola.

Given the data below, determine the type of orbit, and predict where the comet will be when $\displaystyle \phi = 4.6 $ , radians.

$\displaystyle \left[ \begin{matrix} \phi & 0.88 & 1.1 & 1.42 & 1.77 & 2.14 \\ r & 3.00 & 2.30 & 1.65 & 1.25 & 1.01 \end{matrix} \right] $

Solving for r gives, $\displaystyle r = \frac{\beta}{(1-e\cdot cos(\phi))} $

How would I set a design matrix up?