EVP4
MULTIPLICACION / DIVISION
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
//DECLARACION
cout<<"DIVISION Y MILTIPLICACION \n \n";
int A,B,i=i;
double X,Y,R1,R2,PHI1,PHI2,Z,Z1,RAD1,RAD2,R3,P,PI=3.1416;
//ASIGNACION
cout<<"Ingrese el Valor de A:\n "; cin>>A;
cout<<endl;
cout<<"Ingrese el Valor de B:\n "; cin>>B;
cout<<endl;
cout<<"Ingrese el Valor de PHI1:\n \n "; cin>>PHI1;
cout<<endl;
cout<<"Ingrese el Valor de PHI2:\n \n "; cin>>PHI2;
//PROCESO
cout<<"POLAR A RECTANGULAR \n \n" ;
RAD1 = (2 * PI * PHI1) / 360;
RAD2 = (2 * PI * PHI2) / 360;
Y=A*PHI1;
X=B*PHI2;
R1 = (A/B);
R2=(RAD1/RAD2);
cout<<"Radio = "<<(R1 )<<" Angulo = "<<(R2)<< endl;
Z=R1*cos(R2);
Z1=R1*sin(R2);
cout<<"Z = "<<( Z)<<" + Z1 = i"<<(Z1)<< endl;
cout<<"RECTANGULAR A POLAR\n \n";
R3=sqrt(pow(Z,2)+pow(Z1,2));
P=atan(Z1/Z);
cout<<"Radio2 = "<<(R2 )<<" Angulo = "<<(P)<< endl;
return 0;
}
suma/resta
#include <iostream>
#include <math.h>
using namespace std;
int main(){
//DECLARACION
cout<<"SUMA RESTA \n \n"; int A,B,C,D,i=i; double X1,X2,Y,R1,PHI,Z;
//ASIGNACION
cout<<"Ingrese el Valor de A:\n "; cin>>A; cout<<endl; cout<<"Ingrese el Valor de B:\n "; cin>>B; cout<<endl; cout<<"Ingrese el Valor de C:\n \n "; cin>>C; cout<<endl; cout<<"Ingrese el Valor de D:\n \n "; cin>>D; //PROCESO
cout<<"RECTANGULAR A POLAR \n \n" ; X1=A+B; X2=C-D; Y=(A+C)+(B-D); R1 = sqrt(pow((A+C),2)+pow((B-D),2)); cout<<"El Valor de R1 es: "<< R1<<endl; PHI= atan(B-D / A+C); cout<<"El Valor de PHI es: "<< PHI<<endl;
//DIVIDIR
cout<<"Radio = "<<(R1 )<<" Angulo = "<<(PHI)<< endl; cout<<"POLAR A RECTANGULAR
\n \n"; Z=R1*cos(PHI)+R1*sin(PHI); cout<<"El Valor de Z ES: "<< Z <<endl; return 0; }
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
//DECLARACION
cout<<"DIVISION Y MILTIPLICACION \n \n";
int A,B,i=i;
double X,Y,R1,R2,PHI1,PHI2,Z,Z1,RAD1,RAD2,R3,P,PI=3.1416;
//ASIGNACION
cout<<"Ingrese el Valor de A:\n "; cin>>A;
cout<<endl;
cout<<"Ingrese el Valor de B:\n "; cin>>B;
cout<<endl;
cout<<"Ingrese el Valor de PHI1:\n \n "; cin>>PHI1;
cout<<endl;
cout<<"Ingrese el Valor de PHI2:\n \n "; cin>>PHI2;
//PROCESO
cout<<"POLAR A RECTANGULAR \n \n" ;
RAD1 = (2 * PI * PHI1) / 360;
RAD2 = (2 * PI * PHI2) / 360;
Y=A*PHI1;
X=B*PHI2;
R1 = (A/B);
R2=(RAD1/RAD2);
cout<<"Radio = "<<(R1 )<<" Angulo = "<<(R2)<< endl;
Z=R1*cos(R2);
Z1=R1*sin(R2);
cout<<"Z = "<<( Z)<<" + Z1 = i"<<(Z1)<< endl;
cout<<"RECTANGULAR A POLAR\n \n";
R3=sqrt(pow(Z,2)+pow(Z1,2));
P=atan(Z1/Z);
cout<<"Radio2 = "<<(R2 )<<" Angulo = "<<(P)<< endl;
return 0;
}
Multiplicaciion / Divicion
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
//DECLARACION
cout<<"DIVISION \n \n";
int A,B,i=i;
double R1,R2,PHI1,PHI2,Z,Z1,RAD1,RAD2,R3,P,PI=3.1416;
//ASIGNACION
cout<<"Ingrese el Valor de A:\n "; cin>>A;
cout<<endl;
cout<<"Ingrese el Valor de B:\n "; cin>>B;
cout<<endl;
cout<<"Ingrese el Valor de PHI1:\n \n "; cin>>PHI1;
cout<<endl;
cout<<"Ingrese el Valor de PHI2:\n \n "; cin>>PHI2;
//PROCESO
cout<<"POLAR A RECTANGULAR \n \n" ;
RAD1 = (2 * PI * PHI1) / 360;
RAD2 = (2 * PI * PHI2) / 360;
R1 = (A/B);
R2=(RAD1/RAD2);
cout<<"Radio = "<<(R1 )<<" Angulo = "<<(R2)<< endl;
Z=R1*cos(R2);
Z1=R1*sin(R2);
cout<<"Z = "<<( Z)<<" + Z1 = i "<<(Z1)<< endl;
cout<<"RECTANGULAR A POLAR\n \n";
R3=sqrt(pow(Z,2)+pow(Z1,2));
P=atan(Z1/Z);
cout<<"Radio2 = "<<(R2 )<<" Angulo = "<<(P)<< endl;
return 0;
}
Divicion
Multiplicacion
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
//DECLARACION
cout<<"MULTIPLICACION\n \n";
int A,B,C,D,i=i;
double X1,X2,Y,R1,R2,PHI,Z,Z1,RAD1,RAD2,R3,P,PI=3.1416;
//ASIGNACION
cout<<"Ingrese el Valor de A:\n "; cin>>A;
cout<<endl;
cout<<"Ingrese el Valor de B:\n "; cin>>B;
cout<<endl;
cout<<"Ingrese el Valor de D:\n \n "; cin>>D;
cout<<endl;
cout<<"Ingrese el Valor de C:\n \n "; cin>>C;
//PROCESO
cout<<"POLAR A RECTANGULAR \n \n" ;
X1=A+B;
X2=C-D;
Y=(A+C)*(B-D);
R1 = sqrt(pow((A+C),2)+pow((B-D),2));
cout<<"El Valor de R1 es: "<< R1<<endl;
PHI= atan(B-D / A+C);
cout<<"El Valor de PHI es: "<< PHI<<endl;
//DIVIDIR
cout<<"Radio = "<<(R1 )<<" Angulo = "<<(PHI)<< endl;
cout<<"POLAR A RECTANGULAR \n \n";
Z=R1*cos(PHI)+R1*sin(PHI);
cout<<"El Valor de Z ES: "<< Z <<endl;
return 0;
}