top of page

#include<iostream>

#include<math.h>

namespace std;

int main()


    //MULTIPLICACION
     cout<<" multiplicacion de dos rectangulares\n";
     cout<<"********************************\n";
   //DECLARACION
     int X1,X2,Y1,Y2;
     double PHI3,R3;
   //ASIGNACION
     cout<<"Ingrese el X1: ", cin>>X1;
     cout<<"Ingrese el X2: ", cin>>X2;    
     cout<<"Ingrese el Y1: ", cin>>Y1;
     cout<<"Ingrese el Y2: ", cin>>Y2;   
   //PROCESO
   R1=sqrt(pow(X1,2)+pow(Y1,2));
   PHI1=atan(Y1/X1);
   R2=sqrt(pow(X2,2)+pow(Y2,2));
   PHI2=atan(Y2/X2);
   //DIVISION
   R3=(R1*R2);
   PHI3=PHI1+PHI2;
   //RESULTADO
     cout<<" EL RADIO = "<< R3<< " Y EL ANGULO: "<< PHI3<<endl;
     cout<<"**************************************\n";
     cout<<endl<<endl;
     //system("pause");
     
     
     
     
    //DIVISION
       cout<<" division de dos rectangulares\n";
       cout<<"*****************************************\n";
    //DIVISION
   R3=(R1/R2);
   PHI3=PHI1-PHI2;
   //RESULTADO
     cout<<" EL RADIO = "<< R3<< " Y EL ANGULO: "<< PHI3<<endl;
     cout<<"********************************\n";
     cout<<endl<<endl;
     cout<<"Cesar David Garcia Hidalgo\n";
     cout<<"IIIEE-2";
     //system("pause");
     return 0;
}//FINPROCESO
//SUMA
     cout<<" suma de dos polares\n";
     cout<<"*****************************************\n";
   //DECLARACION
     double xi,xii,yi,yii,ri,rii,ang1,ang2,rraadd1,rraadd2;
   //ASIGNACION
     cout<<"Ingrese el angulo 1: ", cin>>ang1;
     cout<<"Ingrese el angulo 2: ", cin>>ang2;    
     cout<<"Ingrese el radio 1: ", cin>>ri;
     cout<<"Ingrese el radio 2: ", cin>>rii;   
   //PROCESO
    rraadd1=(2*PI*ang1)/360;
    rraadd2=(2*PI*ang2)/360;
    xi=ri*cos(rraadd1);
    xii=rii*cos(rraadd2);
    yi=ri*sin(rraadd1);
    yii=rii*sin(rraadd2);   
   //SUMA
   //RESULTADO
     cout<<" Z= "<< xi+xii<<" + J  "<<yi+yii<<endl;
     cout<<"********************************\n";
     cout<<endl<<endl;
     //system("pause");
     
     
     
     
    //RESTA
     cout<<" resta de dos polares\n";
     cout<<"*****************************************\n";  
    //RESTA
    //RESULTADO
     cout<<" Z= "<< xi-xii<<" + J  "<<yi-yii<<endl;
     cout<<"********************************\n";
     cout<<endl<<endl;
     //system("pause");   

 

© 2023 by Fashion Diva. Proudly created with Wix.com

  • White Facebook Icon
  • White Instagram Icon
  • White Pinterest Icon
  • White Twitter Icon
  • White YouTube Icon

Únete a nuestra lista de correo

No te pierdas ninguna actualización

bottom of page