@@ -0,0 +1,906 @@
+%0A%0Aimport java.util.Random;%0Apublic class QRalgorithmExample2%7B%0A%09public static void main(String%5B%5D args)%7B%0A%09%0A%09%09ComplexMatrix A = ComplexMatrix.parseMatrix(%22%5B%5B2,-2,2,1%5D%5B2,-1,0,-1%5D%5B0,-1,4,-1%5D%5B-1,2,1,-4%5D%5D%22);%0A      System.out.println(A);%0A      ComplexMatrix%5B%5D QR = A.QRfactor();%0A      %0A      System.out.println(QR%5B0%5D);%0A      System.out.println(QR%5B1%5D);%0A      %0A      int n = 1;%0A      A = QR%5B1%5D.mult(QR%5B0%5D);%0A      System.out.println(A);%0A      %0A      for(int i=0; i%3C100; i++)%7B%0A         QR = A.QRfactor();%0A         A = QR%5B1%5D.mult(QR%5B0%5D);%0A         n++;%0A         System.out.println(%22n = %22+n);%0A         //System.out.println(A);%0A      %7D%0A      %0A      for(int i=0; i%3C50; i++)%7B%0A         QR = A.QRfactor();%0A         A = QR%5B1%5D.mult(QR%5B0%5D);%0A         n++;%0A         System.out.println(%22n = %22+n);%0A         //System.out.println(A);%0A         System.out.println(A);%0A      %7D%0A      %0A      System.out.println(new Eigen(A));%0A%09%09%0A      %0A%09%7D%0A%7D%0A

Create QRalgorithmExample2.java