アットウィキロゴ

れんんxcc

package math;
 
 
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.math3.linear.*;
 
 
 
public class pro {
 
    public static void main(String[] args) {
        pro test=new pro();
    }
    pro(){
 
      RealMatrix co =
    new Array2DRowRealMatrix(new double[][] { { 2, 3, -2 }, { -1, 7, 6 }, { 4, -3, -5 } },
                       false);
 
DecompositionSolver sp = new LUDecomposition(co).getSolver();
 
RealVector con = new ArrayRealVector(new double[] { 1, -2, 1 }, false);
RealVector sol = sp.solve(con);
 
 System.out.println(sol);
 
 
 
    }
 
 
 
 
}
最終更新:2015年11月27日 02:23