/*import java.util.Scanner; /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * * @author REC */ public class Determinan { /** * @param args the command line arguments */ public static void main(String[] args) { System.out.println("\t\t\t=========================="); System.out.println("\t\t\t======Selamat Datang======"); System.out.println("\t\t\t===diprogram Determinan==="); System.out.println("\t\t\t==========Matriks========="); System.out.println("***By: Moh Syahid= 1210651273***"); System.out.print("Masukkan Nilai ordo nxn, n = "); Scanner s = new Scanner(System.in); try{ int n = s.nextInt(); int i,j; double data[][] = new double [n][n]; for(i=0;i<n 0="" 2="" adalah="+d); } catch (Exception e){ System.out.println(" asukkan="" besar="" d="det(data);" dari="" data.length-1="" data.length="=" data="" det="" double="" else="" eterminan="" for="" harus="" i="" if="" int="" j-1="" j="" k="" ke-="" lebih="" length-1="" matrik="" matriknya="" n="" new="" nilai="" public="" result="" return="" s.nextdouble="" static="" system.out.print="" temp="">i){ temp[j-1][k-1]=data[j][k]; } } } result+=data[0][i]*Math.pow(-1, (double)i)*det(temp); } return result; } } */
WHAT'S NEW?
Loading...
0 komentar:
Posting Komentar