Solving Simultaneous Linear Equation using commons-math-2.2.jar from Apache
<p>I am trying to solve linear equation using commons-math-2.2.jar from Apache.</p>

<p>For three small points, i get right result.</p>

<p>When i use following data(big number),i am not getting right result rather i would say result makes no sense;</p>

<p>Following is the code and datas i am using:</p>

<pre><code>double [][]matrixPoint= new double[][]{{1,80,6400,512000,4.096*Math.pow(10, 7)},{1,100,10000,1000000,1.0*Math.pow(10, 8)},{1,120,14400,1728000,2.073*Math.pow(10, 8)},{1,160,25600,4096000,6.553*Math.pow(10, 8)},{1,200,40000,8000000,1.6*Math.pow(10, 9)}};
        double [] matrixVector=new double[]{300,350,300,350,250};

RealMatrix coefficients =
                    new Array2DRowRealMatrix(matrixPoint,false);                           
         DecompositionSolver solver = new LUDecompositionImpl(coefficients).getSolver();    
            //  RealVector constants = new ArrayRealVector(new double[] { 1, -2, 1 }, false);
         RealVector constants = new ArrayRealVector(matrixVector, false);
         RealVector solution = solver.solve(constants); 
                System.out.println("The values are:"+Math.round(solution.getEntry(0))+":"+Math.round(solution.getEntry(1))+":"+Math.round(solution.getEntry(2))+":"+Math.round(solution.getEntry(3))+":"+Math.round(solution.getEntry(4)));
</code></pre>

<p>Is any limitation with the API?If you know any other library for solving the linear equations,please let me know.</p>

<p>Thanks in advance</p>

<p>Rakesh</p>
