Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(i=0;i<this.Matriz[0].length;i++)
- {
- for(j=0;j<this.Matriz[0][0].length;j++)
- {
- if(i!=iteracion)
- {
- if(j!=iteracion)
- {
- //aqui
- this.Matriz[iteracion+1][i][j] =
- new Fracciones().division(
- new Fracciones().resta(
- new Fracciones().multiplicacion(
- this.PivAct,this.Matriz[iteracion][i][j]),
- new Fracciones().multiplicacion(
- this.Matriz[iteracion][iteracion][j],this.Matriz[iteracion][i][iteracion])
- ),this.PivAnt);
- /*objeto que se va a dividir
- *objeto que se va a restar
- *objeto que se va a multiplicar
- *multiplicandose :D
- *objeto que se va a multiplicar y el resultado se restara con el de arribita
- *multiplicandose D:
- *dividiendose */
- //elementos tipo Fracciones
- /*
- Elemento1.multiplicacion(this.PivAct,this.Matriz[iteracion][i][j]);
- Elemento2.multiplicacion(this.Matriz[iteracion][iteracion][j],
- this.Matriz[iteracion][i][iteracion]);
- Espacio.resta(Elemento1,Elemento2);
- Elemento.division(Espacio,this.PivAnt);
- //:D ... espacio=elemento-elemento1; espacio/pivAnt o.o
- this.Matriz[iteracion+1][i][j]=Elemento;//elemento tipo Fracciones
- */
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment