アットウィキロゴ

ppp9

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 coefficients =
    new Array2DRowRealMatrix(new double[][] { { 2, 3, -2 }, { -1, 7, 6 }, { 4, -3, -5 } },
                       false);
DecompositionSolver solver = new LUDecomposition(coefficients).getSolver();
 
RealVector constants = new ArrayRealVector(new double[] { 1, -2, 1 }, false);
RealVector solution = solver.solve(constants);
 
 
 
 
 
    }
 
 
 
 
}
最終更新:2015年11月13日 06:55