// Instructions: // Try the following starting vectors: (1,1), (0,1), (0.1,1), (1,2), (1.1,2), (1.01,2). public class MatrixVectorExample2 { public static void main (String[] argv) { DrawTool.display (); DrawTool.setXYRange (-2,2, -2,2); DrawTool.drawMiddleAxes (true); double[][] A = { {5,-2}, {0,1} }; // Now start with some initial vector u double[] u = {1.01,2}; // Draw u DrawTool.drawVector (u); // In black. // We'll draw the vectors obtained in sequence: DrawTool.setArrowColor ("blue"); int n = 10; for (int i=0; i