// Instructions: // (1) Compile and execute to see the points. // (2) Un-comment the section for computing the least squares solution, // write the matrix operations, then compile/execute. import edu.gwu.lintool.*; public class Ellipse { public static void main (String[] argv) { // The data: int n = 12; double[] x = {0.5, 1.0, 1.5, 2.5, 3, 4, 5, 5.5, 6, 7, 7.5, 8}; double[] y = {4.3, 5.2, 5.538, 0.065, 5.8, -0.223, 5.83, 0.205, 5.404, 1.135, 4.312, 3.05}; // Display the points. DrawTool.display (); DrawTool.setXYRange (0,10, 0,10); for (int i=0; i