top of page

#include <iostream>
#include<math.h>
using namespace std;

int m,land,INICIAL, FINAL;
double FREC_NAT(int a), R, R1, R2, K=0.025*pow(10,-11); double F0, W, W0;
double k = 0.025*pow(10,-11); double F0, W, W0;
double AMORTI(double b, int c, double e, double f, int g);
double A, B, C, D;

int main()

{
    int menu;
    {
    cout <<"*************ONDA RADIOFRECUENCIA***********\n" << endl;
    cout <<"1) FRECUENCIA NATURAL : :" << endl;
    cout <<"2) AMORTIGUACION : :" << endl;
    cout <<" diplohp" << endl;
    cout <<"ELIGE UNA OPCION DEL MENU : :" cin>>menu;
    switch (menu)
    {
        case 1:
            {
            cout <<"ingrese el valor de m: :";    CIN>>menu;
            R1=FREC_NAT(m);
            cout <<"el valor de R1 ES = :"<<R1<<endl;
            } break;
        case 2:
            {
            cin>>INICIAL;cin>>FINAL;cin>>m;
            cin>>W;cin>>W0;cin>>land;
            for(F0=INICIAL;F0<=FINAL; F0=F0+1.5)    
               {
               R2=AMORTI(F0, m, W, W0, land);
               cout <<"el valor de R2 ES ="<<R2<<endl;
            }
               
            } break;
               defaul:
               cout<<"ESTA OPCION NO SE ENCUENTRA EN EL MENU\n"<<endl;
               cout<<"diplohp"<<endl;
    }           
}
    return 0;
 }//fin c++
 
 // zona de funcines:
double FREC_NAT(int a) 
{
    r1=sqrt(k/a);
    return R1;
}
double AMORTI(double b, int c, double e, double f, int g);
{
    B=b/c;
    C=pow((d*d-e),2);
    D=4*pow(d,2)*pow(g,2);
    A=B/sqrt(C+D);
    return A;    
}
   

© 2023 por Secretos de Armario. Creado con Wix.com

Únete a nuestra lista de correo

No te pierdas ninguna actualización

bottom of page