/* From: "COMPUTATIONAL PHYSICS, 2nd Ed" by RH Landau, MJ Paez, and CC Bordeianu Copyright Wiley-VCH, 2007. Electronic Materials copyright: R Landau, Oregon State Univ, 2007; MJ Paez, Univ Antioquia, 2007; and CC Bordeianu, Univ Bucharest, 2007. Support by National Science Foundation */ // pspaceJamaEigen.java: solve Lippmann-Schwinger eq for bound states import Jama.*; import java.io.*; public class pspaceJamaEigen { public static void main(String[] argv) throws IOException, FileNotFoundException { Gauss gauss = new Gauss(); double u = .5; double eps = 1.0*Math.pow(10,-8); int b = 2, i, j, g, temp3 = 0, size = 128; double temp = 0, temp2, test = 0, min = 0.0, max = 200.0; double lambda = -1.0; Matrix H = new Matrix(size, size); Matrix Psi = new Matrix(size, size); PrintWriter q = new PrintWriter ( new FileOutputStream("pspace.dat"), true); Matrix ev = new Matrix(size,1); Matrix a1 = new Matrix(size,1); Matrix a2 = new Matrix(size,1); Matrix ground = new Matrix(size,1); double[] w = new double[size]; double[] k = new double[size]; double[] y = new double[size]; double[] z = new double[size]; double[] im = new double[size]; double[][] VR = new double[size][size]; gauss.gauss(size, 0, min, max, k, w); for( i=0; i Math.abs(temp) ) { temp = y[i]; temp3 = i; } } } Psi = E.getV(); for(j=0; j