#include<iostream>
#include<math.h>
using namespace std ;
int opcion,ab,bc,cd,df,fg,gh,hi,ij,lm,kl,x,y,a,b,e,f,j,vi,h,w;
double jk,v,PI=3.14,A,G,B,H,C,I,N,D,J,K,E,F,L,RAD;
double Parabola(int ab);
double Funcion(int bc);
double Potencia(int cd,int df);
double Exponente(int fg,int gh);
double INJ_FUN(int hi,int ij,int lm);
double FAR_FUN(double jk,int kl);
int main()
{
cout<<"MENU\n" ;
cout<<"1.Parabola\n" ;
cout<<"2.Funcion\n" ;
cout<<"3.Potencia\n" ;
cout<<"4.Exponente\n" ;
cout<<"5.Velocidad\n" ;
cout<<"6.Energia\n" ;
cout<<"Ingrese la opcion:" ;cin>>opcion ;
switch(opcion)
{
case 1:
{
for(x=-5;x<=5;x++)
A=Parabola(x);
cout<<x<<endl;
};break;
case 2:
{
for(y=-4;y<=16;y=y+7)
{
B=Funcion(y);
cout<<B<<endl;
}
};break;
case 3:
{
cout<<"Ingrese: ";cin>>a;
cout<<"Ingrese: ";cin>>b;
C=Potencia(a,b);
cout<<C<<endl;
};break;
case 4:
{
cout<<"Ingrese el enesimo numero: ";cin>>N;
cout<<"Ingrese : ";cin>>e;
f=1;
while(f<=N)
{
D=Exponente(f,e);
cout<<D<<endl;
f++;
}
};break;
case 5:
{
cout<<"ingrese : ";cin>>h;
cout<<"ingrese : ";cin>>j;
for(vi=5;vi<=10;vi=vi+2)
{
E=INJ_FUN(vi,h,j);
cout<<E<<endl;
}
};break;
case 6:
{
for(v=2.40;v<=15.30;v=v+1)
{
cout<<"para el voltaje v: "<<v<<endl;
cout<<endl;
for(w=10;w<=30;w=w+5)
{
F=FAR_FUN(v,w);
cout<<" la energia es F: "<<F<<endl;
}
}
};break;
}
system ("pause") ;
return 0;
}
double Parabola(int ab)
{
G=pow(ab,2)+5;
return G;
}
double Funcion(int bc)
{
H=pow(bc,2)-8;
return H;
}
double Potencia(int cd,int df)
{
I=pow(cd,df);
return I;
}
double Exponente(int fg,int gh)
{
J=pow(fg,gh);
return J;
}
double INJ_FUN(int hi,int ij,int lm)
{
K=hi+ij*lm;
return K;
}
double FAR_FUN(double jk,int kl)
{
RAD=(2*PI*kl)/360;
L=jk*sin(RAD);
return 0;
}
No hay comentarios:
Publicar un comentario