top of page

CORRIENTE ALTERNA DE FASORES

Captura.PNG
corriente-alterna-1-638.jpg
Formulario+circuitos+de+corriente+altern
Captura3.PNG
Captura1.PNG
Captura4.PNG
Captura2.PNG

PROGRAMACIÓN: 

#include<iostream>

#include<math.h>

using namespace std;

int main()

{

//declaracion

 

    double T1, T2,RAD1,RAD2;

   

     //asignacion parte1

    cout<< "ingrese valor para R1: ",cin >>R1 ;

    cout<< "ingrese valor para el angulo1: ",cin >>T1 ;

    cout<< "ingrese valor para R2: ",cin >>R2 ;

    cout<< "ingrese valor para el angulo2: ",cin >>T2 ;

      

    //proceso

    RAD1=(2*pi*T1)/360;

    RAD2=(2*pi*T2)/360;

    x1=R1*cos(RAD1);

    y1=R1*sin(RAD1);

    x2=R2*cos(RAD2);

    y2=R2*sin(RAD2);

//resultado

cout<<"el resultado en rectangular es:\n";

cout<<"z es =:"<<(x1+x2)<<"+j"<<(y1+y2)<<endl;

x=(x1 +x2);

y=(y1+y2);

//conversión

If (R>2)

{   R=sqrt(pow(x,2)+pow(y,2));

     Cout<<R;

}

Else

{    cout<<"el resultado es:"<<R<<endl;

}

    system("pause");

    return 0;

}

//fin

About Me

© 2023 by Going Places. Proudly created with Wix.com

  • White Facebook Icon
Join My Mailing List

I'm a paragraph. Click here to add your own text and edit me. It’s easy. Just click “Edit Text” or double click me to add your own content and make changes to the font.

 

Read More

 

bottom of page