From 51341e65d13576d1caf64f6aff1724811c355341 Mon Sep 17 00:00:00 2001 From: Orange_Dugongo Date: Mon, 31 Oct 2016 10:21:05 +0100 Subject: [PATCH] Determinante --- src/Matrici/Matrice.java | 36 +++++++++++++++++++++++++++++------- 1 file changed, 29 insertions(+), 7 deletions(-) diff --git a/src/Matrici/Matrice.java b/src/Matrici/Matrice.java index e99b10b..084d701 100644 --- a/src/Matrici/Matrice.java +++ b/src/Matrici/Matrice.java @@ -1,5 +1,6 @@ import java.io.*; import java.util.Scanner; +import java.lang.Math; public class Matrice{ @@ -95,15 +96,36 @@ public class Matrice{ return m2; } - /* - public static double det(m){ - if(this.a==2 && this.b==2) - return m.getElement(0,0)*m.getElement(1,1)-m.getElement(1,0)*m.getElement(0,1); - else{ - + //Probably not work + private Matrice copy(int x, int y){ + int i1, j1, i2=0, j2=0; + Matrice m2 = new Matrice(this.a-1,this.b-1); + for(i1=0;i1