lunes, 30 de julio de 2012

Método de jacobi en c++

#include<stdio.h>
#include<conio.h>
#include<math.h>

void llenarm(float matrizA[100][100],int n){
for(int i=0;i<=n-1;i++){
for(int j=0;j<=n-1;j++){
printf("Ingresar A[%d][%d]=",i,j);
scanf("%f",&matrizA[i][j]);}
}
}   
void llenarv(float matrizB[100],int n){
for(int j=0;j<=n-1;j++){
printf("Ingresar B[%d]=",j);
scanf("%f",&matrizB[j]);}
}
void llenaraprox(float maprox[100],int n){
for(int j=0;j<=n-1;j++){
printf("Ingresar X[%d]=",j);
scanf("%f",&maprox[j]);}
}
void mostrar(float matrizB[100],int n){
for(int j=0;j<=n-1;j++){
printf("nn");         
printf("t%f",matrizB[j]);}

}
void mostrar2(float matriz[100][100],float B[100],int n){                         
for(int i=0;i<=n-1;i++){
printf("nn");         
for(int j=0;j<=n-1;j++){
printf("t%f",matriz[i][j]);}
printf("t%f",B[i]);
}               
}

//El metodo de Jacobi con las condiciondes dadas.
void jacobi(float A[100][100],float B[100],float X0[100],float X[100],float max,int n){
int t=1;
while(t<=max){
for(int i=0;i<n;i++){
float suma=0;
for(int j=0;j<n;j++){
if(j!=i)
{suma=suma+A[i][j]*X0[j];}
}
X[i]=(B[i]-suma)/A[i][i];
}

for(int k=0;k<=n-1;k++){
X0[k]=X[k];}      
t++; 

}               
}
int main(){
float A[100][100],B[100],X0[100],X[100],tol; 
int n,max;
printf("tttResolucion de Sistemas AX=Bn");
printf("ttt   METODO DE JACOBIn");
printf("nIngresar numero de incognitas: ");
scanf("%d",&n);
printf("nIngresar el numero maximo de iteraciones: ");
scanf("%d",&max);
printf("nINGRESAR A:n");
llenarm(A,n);
printf("nINGRESAR B:n");
llenarv(B,n);
printf("nIngresar Aproximacion Inicial X0: n");
llenaraprox(X0,n);
printf("nEl Sistema ingresado es:n");
mostrar2(A,B,n);
printf("nnDespues de %d iteracionesn",max);
printf("nLas soluciones aproximadas son:n");
jacobi(A,B,X0,X,max,n);
mostrar(X,n);
getch();
getch();

domingo, 16 de enero de 2011

Pink Floyd - The Wall

Que tal ahora les dejo un super video, si eres amante del rock seguro te va a encantar, esta es una banda trascendetntal en el rock y uno de sus muchos materialeos es este Pink Floyd - The Wall
142fc496eac1104b24ae30fdcb1cffa1

Sinopsis
Pink, una estrella del rock inglés, se encuentra encerrado en la habitación de un hotel de Los Ángeles, en los momentos previos a un recital. Aquí empieza a pasar revista a su vida: los recuerdos traumáticos de la infancia, las crisis de amor, el sexo, el éxito y la droga como único medio para romper el muro que él mismo ha creado. Una vorágine imaginativa y terrorífica.


Caracteristicas
TITULO ORIGINAL: Pink Floyd The Wall
GENERO: Fantasía, Musical
PAIS: Reino Unido
DURACION: 95 Minutos
AÑO: 1982
DIRECTOR: Alan Parker
GUION: Roger Waters
INTERPRETES: Bob Geldof, Bob Hoskins, Christine Hargreaves y Eleanor David
PRODUCTOR: Alan Marshall
MUSICA: Roger Waters
FOTOGRAFÍA: Peter Biziou
MONTAJE: Gerry Hambling
CALIDAD: Muy Buena
IMAGEN: 720 X 360 Píxeles
TAMANO: 851 MB

Parte 1
Parte 2
Parte 3
Parte 4
Parte 5
Parte 6
Parte 7
Parte 8
Parte 9

Etiquetas: , , ,

lunes, 10 de enero de 2011

Brandon Flowers - Flamingo


01 Welcome To Fabulous Las Vegas
02 Only The Young.mp3
03 Hard Enough
04 Jilted Lovers & Broken Hearts.
05 Playing With Fire
06 Was It Something I Said
07 Magdalena
08 Crossfire.mp3 10 MB
09 On The Floor.mp3
10 Swallow It
11 The Clock Was Tickin'
12 Jacksonville
13 I Came Here To Get Over You
14 Right Behind You


Etiquetas: , , , ,

jueves, 11 de febrero de 2010

The Beatles



Drive my car
Norwegian wood (This Bird Has Flown)
You won't see me
Nowhere man
Think for yourself
The word
Michelle
What goes on
Girl
I'm looking through you
In my life
Wait
If I needed someone
Run for your life


Etiquetas:

martes, 15 de septiembre de 2009

Dusty Kid - A Raver Diary (Extended Versions)




Tracklist:

1. Dusty Kid - Here Comes The Techno [Extended Version]
2. Dusty Kid - The Underground Persistance [Extended Version]
3. Dusty Kid - Lynchesque [Extended Version]
4. Dusty Kid - Klin [Extended Version]
5. Dusty Kid - Cowboys [Extended Version]
6. Dusty Kid - Moto Perpetuo [Extended Version]
7. Dusty Kid - The Fugue [Extended Version]
8. Dusty Kid - Pluk [Extended Version]
9. Dusty Kid - America [Extended Version]
10. Dusty Kid - Agaphes [Extended Version]
11. Dusty Kid - Nemur [Walls of Guitars-Extended Version]



Etiquetas:

Queen - Greatest hits I



Según un estudio del grupo The Official UK Charts Company, que pasó los últimos seis meses investigando sobre los 100 álbumes musicales que más vendieron en la historia del país, concluyó que el disco Greatest Hits de Queen es el más vendedor de la historia en Gran Bretaña (5,4 millones de copias).
En el Top 10 de los discos más vendedores en el Reino Unido también se encuentra el Greatest Hits II (puesto 7).

1. Bohemian Rhapsody (Mercury)
2. Another One Bites The Dust (Deacon)
3. Killer Queen (Mercury)
4. Fat Bottomed Girls (May)
5. Bicycle Race (Mercury)
6. You're My Best Friend (Deacon)
7. Don't Stop Me Now (Mercury)
8. Save Me (May)
9. Crazy Little Thing Called Love (Mercury)
10. Somebody To Love (Mercury)
11. Now I'm Here (May)
12. Good Old-Fashioned Lover Boy (Mercury)
13. Play The Game (Mercury)
14. Flash (May)
15. Seven Seas Of Rhye (Mercury)
16. We Will Rock You (May)
17. We Are The Champions (Mercury)


Etiquetas:

deep puple - Greatest hits



Lista de Canciones

• Black Night
• Child In Time
• Highway Star
• Lazy
• Smoke On The Water
• Space Truckin'
• Speed King
• Strange Kind Of Woman
• Woman From Tokyo

Etiquetas: