top of page

TELECOMUNICACIONES EN DOMOTICA

Captura1.PNG
images.png
Captura2.PNG
domotica-e1443200088612.jpg
Captura3.PNG
Captura5.PNG
as.PNG
aw.jpg

Aprendamos un poco mas....

#include<iostream>

#include<math.h>

using namespace std;

int main ( )

{

                int opcion ;

                //menu

                cout << "menu\n";

                cout << "(1)CAMPO MAGNETICO1\n";

                cout << "(2)CAMPO MAGNETICO2\n";

                cout << "(3)CAMPO MAGNETICO3\n";

                cout << "(4)CAMPO MAGNETICO4\n";

                cout << "(5)CAMPO MAGNETICO5\n";

                cout<<"ingrese opcion";

                cin>>opcion;

                switch(opcion)

                {

                               case 1:

                                               {

                                                               double b, mu=0.0175, pi= 3.1415;

                                                               int r, l;

                                                               cout<<"ingrese el valor para r:";cin>>r; cout<<"ingrese el valor                                                                   para l:";cin>>l;

                                                               if (r!=0)

                                                               {b=(mu*l)/(2*pi*r);

                                                               cout<<"la respuesta es:" <<b<<endl;

                                                              

                                                                             

                                                               }

                                                               else

                                                               cout<<"tome valores r>0"<<endl;

                                                             }  ;break;

                               case 2:

                                               {

                                                                   int a,b,c;

                                                               double x1,x2, discri;

                                                                  cout<<"ingrese el valor para a:"; cin>> a;  cout<<"ingrese el                                                                        valor para b:" ; cin>>b ;cin>>c;

                                                               discri=pow(b,2)-4*a*c;

                                                               if(a!=0)

                               {

                                                               if(discri>0)

            {

                               x1=(-pow(b,2)+sqrt(discri))/(2*a);

                               x2=(-pow(b,2)- sqrt(discri))/(2*a);

                               cout<<"RAIZ 1:"<<x1<<endl;

                               cout<<"RAIZ 2:"<<x2<<endl;

            }

                                               else

                                               {

                               cout<<"imaginario"<<endl;

                                               }

                                               }

                                                               else

                                               {

                                               cout<<"indeterminado"<<endl;

                                               }     

 

                                               };break;

                                              

                                case 3:

                               {

                                               int l,n,r,a,b;

            double mu,B, pi=3.14,i,A,D,C;

            cin>> a; cin>>b;cin>>n;

            i=2.5;

            r=3;

            mu=0.0179;

            l=5;

            A=a/(sqrt(pow(r,2)+ pow(a,2)));

            D=b/(sqrt(pow(r,2)+pow(b,2)));

            if(B>2000)

             {

                C=(mu*n*i)/(2*l);

                B=C*(A-D);

             }

             

             else

               {

                 cout<<"el campo magnetico es:"<<B<<endl;  

               }

        };break;

       

       case 4:

                   {

                                    int E,i,B,v,l;

            double f;

            cin>> i; cin>>l;cin>>B;

 

            if(B<3)

             {

               f=i*l*E;

               cout<<"el campo magnetico es:"<<B<<endl;

             }

             

            else

                               {

                               cout<<"es imaginario"<<endl; 

                                 

                               }

                                              

                                               } ;break;

                                              

                                case 5:

                                               {

                                                                   double b,l,y,r,i,pi=3.1416,mu=0.0175;

                                               cin>> y; cin>>mu;cin>>r; cin>>i;

 

                                                                if(i>6)

                               {

                               b=(mu*i/2*pi*l)*y;

                               cout<<"el campo magnetico es:"<<b<<endl;

                               }

             

                                               else

                                               {

                                                                cout<<"es imaginario"<<endl; 

                                 

                                                                 }

 

                                                                               }

                                               }//fin switch

                                               //system ("pause");

                                               return 0;

                                               }//fin

PROGRAMACIÓN

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