INNOVATION
Here you find different learning things from my side about Computer Science
Saturday, 8 August 2015
Algorithm Of Solving Row Reduced Echelon Form Of Matrix
Algorithm Of Solving Row Reduced Echelon Form Of Matrix
As this guy say, no one have time for solving Row Reduce Echelon Form for Matrix.
Here I have Algorithm for solving RREF for your Matrix
import java.util.Scanner; public class Matrix { private int Row; //NO OF ROWS private int Column; //NO OF COLUMNS private float [][]Elements;//FOR CARRING ELEMENTS public Matrix(int No_Row,int No_Column)//PARAMETERIZED CONSTRUCTOR { if(No_Row>0 && No_Column>0) { Row=No_Row; Column=No_Column; Elements = new float[No_Row][No_Column]; } else { write=false; System.out.println("\nYOU CAN NOT MAKE MATRIX WITH THIS DIMENTIONS.\n"); } } public void SET_ELEMENTS_OF_MATRIX() { Scanner x=new Scanner(System.in); for(int i=0;i
R;j--) { if(Elements[j][i]!=0) { Temp=j; break; } } if(Temp!=-1) { count++; for(int f=0;f
=0;k--) { float []Array=new float[Column]; for(int l=0;l
Main Class
public class Main { public static void main(String[] args) { Matrix M=new Matrix(3,3); M.SET_ELEMENTS_OF_MATRIX(); M.GET_RREF_FORM(); } }
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment