Fasores
¿Que es un fasor?
Un fasor es una representación gráfica de
un número complejo
que se utiliza para representar una oscilación, de forma que el fasor suma de
varios fasores puede representar la magnitud y fase de la oscilación resultante de la
superposición de varias oscilaciones en un proceso de interferencia
Los fasores se usan sobre todo para resolver visualmente problemas del tipo: "existen varias ondas de la misma frecuencia pero fases y amplitudes diferentes interfiriendo en un punto, ¿cual es la intensidad resultante?".
ejem .
Tensión: 230 (V) de valor eficaz
Intensidad: 6 (A) de valor eficaz; adelantada 60º respecto a la tensión.
MARCO TEORICO DE LOS PROBLEMAS
suma de fasores
producto de fasores
cociente de fasores
DIAGRAMA DE FLUJO
CODIFICACION EN C++
1.-
#include <iostream>
#include <math.h>
#define PI 3.141592654
using namespace std;
int main()
{
int X, Y, A, B;
float R, I;
cout<<"\n ******SUMA DE FASORES (X<Y) + (A<B)****** ";
cout<<"\n INGRESE X: ";
cin>>X;
cout<<"\n INGRESE Y: ";
cin>>Y;
cout<<"\n INGRESE A: ";
cin>>A;
cout<<"\n INGRESE B: ";
cin>>B;
R = X * cos((PI * Y)/180) + (A * cos((PI * B)/180));
I = X * sin((PI * Y)/180) + (A * sin((PI * B)/180));
cout<<"\n *****EL RESULTADO ES DE LA FORMA:R<I***** ";
cout<<"\n R ES IGUAL A: "; cout<<R;#include <math.h>
#define PI 3.141592654
using namespace std;
int main()
{
int X, Y, A, B;
float R, I;
cout<<"\n ******SUMA DE FASORES (X<Y) + (A<B)****** ";
cout<<"\n INGRESE X: ";
cin>>X;
cout<<"\n INGRESE Y: ";
cin>>Y;
cout<<"\n INGRESE A: ";
cin>>A;
cout<<"\n INGRESE B: ";
cin>>B;
R = X * cos((PI * Y)/180) + (A * cos((PI * B)/180));
I = X * sin((PI * Y)/180) + (A * sin((PI * B)/180));
cout<<"\n *****EL RESULTADO ES DE LA FORMA:R<I***** ";
cout<<"\n I ES IGUAL A: "; cout<<I;
system ("pause");
return 0;
}
2.-
#include <iostream>
#include <math.h>
#define PI 3.141592654
using namespace std;
int main()
{
int X, Y, A, B;
float R, I;
cout<<"\n ******DIFERENCIA DE FASORES (X<Y) - (A<B)****** ";
cout<<"\n INGRESE X: ";
cin>>X;
cout<<"\n INGRESE Y: ";
cin>>Y;
cout<<"\n INGRESE A: ";
cin>>A;
cout<<"\n INGRESE B: ";
cin>>B;
R = X * cos((PI * Y)/180) - (A * cos((PI * B)/180));
I = X * sin((PI * Y)/180) - (A * sin((PI * B)/180));
cout<<"\n *****EL RESULTADO ES DE LA FORMA:R<I***** ";
cout<<"\n R ES IGUAL A: "; cout<<R;
cout<<"\n I ES IGUAL A: "; cout<<I;
system ("pause");
return 0;
}
3.-
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
int X, Y, A, B;
float R, I;
cout<<"\n ******PRODUCTO DE FASORES (X<Y) * (A<B)****** ";
cout<<"\n INGRESE X: ";
cin>>X;
cout<<"\n INGRESE Y: ";
cin>>Y;
cout<<"\n INGRESE A: ";
cin>>A;
cout<<"\n INGRESE B: ";
cin>>B;
R = X * A;
I = Y + B;
cout<<"\n *****EL RESULTADO ES DE LA FORMA:R<I***** ";
cout<<"\n R ES IGUAL A: "; cout<<R;
cout<<"\n I ES IGUAL A: "; cout<<I;
system ("pause");
return 0;
}
4.-
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
int X, Y, A, B;
float R, I;
cout<<"\n ******DIVISION DE FASORES (X<Y) / (A<B)****** ";
cout<<"\n INGRESE X: ";
cin>>X;
cout<<"\n INGRESE Y: ";
cin>>Y;
cout<<"\n INGRESE A: ";
cin>>A;
cout<<"\n INGRESE B: ";
cin>>B;
R = X/A;
I = Y - B;
cout<<"\n *****EL RESULTADO ES DE LA FORMA:R<I***** ";
cout<<"\n R ES IGUAL A: "; cout<<R;
cout<<"\n I ES IGUAL A: "; cout<<I;
system ("pause");
return 0;
}
system ("pause");
return 0;
}
2.-
#include <iostream>
#include <math.h>
#define PI 3.141592654
using namespace std;
int main()
{
int X, Y, A, B;
float R, I;
cout<<"\n ******DIFERENCIA DE FASORES (X<Y) - (A<B)****** ";
cout<<"\n INGRESE X: ";
cin>>X;
cout<<"\n INGRESE Y: ";
cin>>Y;
cout<<"\n INGRESE A: ";
cin>>A;
cout<<"\n INGRESE B: ";
cin>>B;
R = X * cos((PI * Y)/180) - (A * cos((PI * B)/180));
I = X * sin((PI * Y)/180) - (A * sin((PI * B)/180));
cout<<"\n *****EL RESULTADO ES DE LA FORMA:R<I***** ";
cout<<"\n R ES IGUAL A: "; cout<<R;
cout<<"\n I ES IGUAL A: "; cout<<I;
system ("pause");
return 0;
}
3.-
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
int X, Y, A, B;
float R, I;
cout<<"\n ******PRODUCTO DE FASORES (X<Y) * (A<B)****** ";
cout<<"\n INGRESE X: ";
cin>>X;
cout<<"\n INGRESE Y: ";
cin>>Y;
cout<<"\n INGRESE A: ";
cin>>A;
cout<<"\n INGRESE B: ";
cin>>B;
R = X * A;
I = Y + B;
cout<<"\n *****EL RESULTADO ES DE LA FORMA:R<I***** ";
cout<<"\n R ES IGUAL A: "; cout<<R;
cout<<"\n I ES IGUAL A: "; cout<<I;
system ("pause");
return 0;
}
4.-
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
int X, Y, A, B;
float R, I;
cout<<"\n ******DIVISION DE FASORES (X<Y) / (A<B)****** ";
cout<<"\n INGRESE X: ";
cin>>X;
cout<<"\n INGRESE Y: ";
cin>>Y;
cout<<"\n INGRESE A: ";
cin>>A;
cout<<"\n INGRESE B: ";
cin>>B;
R = X/A;
I = Y - B;
cout<<"\n *****EL RESULTADO ES DE LA FORMA:R<I***** ";
cout<<"\n R ES IGUAL A: "; cout<<R;
cout<<"\n I ES IGUAL A: "; cout<<I;
system ("pause");
return 0;
}
WEBGRAFIA
https://es.wikipedia.org/wiki/Fasor
http://www.cifp-mantenimiento.es/e-learning/index.php?id=1&id_sec=5
http://sistemamid.com/panel/uploads/biblioteca/2014-08-07_12-46-48108409.pdf
http://mat21.etsii.upm.es/ayudainf/aprendainf/Cpp/manualcpp.pdf
https://olimpiada-informatica.org/static/pdfs/manual.es.pdf

No hay comentarios.:
Publicar un comentario