Documentos de Académico
Documentos de Profesional
Documentos de Cultura
#include<iomanip>
#include<cmath>
int main()
int n,i,j,k,flag=0,count=0,l=1,e=1;
cout<<"°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°° ID : 1095485
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°"<<endl;
cout<<endl;
cout<<"-> INTRODUZCA EL NUMERO DE FILAS: ";
double eps,y;
cout<<"-> FILA [ " <<i+1<< " ]"<<" VALOR [ " <<j+1<< " ] = ";
}}
eps = 0.1;
system ("cls");
cout<<"---------------------------------- RESULTADOS
----------------------------------"<<endl;
cout<<"°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
°°°°"<<endl;
cout<<endl;
cout<<"----------------------------TU MATRIZ ES LA
SIGUIENTE---------------------------"<<endl;
cout<<"°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
°°°°"<<endl;
cout<<endl;
cout<<"|"<<setw(1)<<a[i][j]<<setw(1)<<"|"<<setw(2);} //CONDICIONANTES
PARA EL MODELO DE ECUACIONES
}}
for (j=0;j<=n;j++)
double temp=a[i][j];
a[i][j]=a[k][j];
a[k][j]=temp;
cout<<endl<<endl;
cout<<"°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
°°°°"<<endl;
cout<<"|"<<setw(1)<<a[i][j]<<setw(1)<<"|"<<setw(2);} //CONDICIONANTES
PARA EL MOEDELO DE ECUACIONES
}}
cout<<endl<<endl;
cout<<"--------------------------------- ITERACIONES
----------------------------------"<<endl;
cout<<"°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
°°°°"<<endl;
cout<<"\n--------------------------------------------------------------------------
------";
y=x[i];
x[i]=a[i][n];
for (j=0;j<n;j++)
if (j!=i)
x[i]=x[i]-a[i][j]*x[j];
x[i]=x[i]/a[i][i];
flag++;
for (i=0;i<n;i++)
cout<<"\n";
system ("PAUSE");
return 0;