Академический Документы
Профессиональный Документы
Культура Документы
APLICACIONES A LA FISICA
HUANCAYO PERU
2013
(d1,d2)
2
A1
(a1,a2)
2
clc
disp(' ===========================')
disp(' CENTRO DE GRAVEDAD')
disp(' ===========================')
disp('Hallar el centro de gravedad de la figura:')
a1=0;
a2=0;
b1=0;
b2=input('Ingrese comp b2: ');
c1=0;
c2=input('Ingrese comp c2: ');
d1=input('Ingrese comp d1: ');
d2=input('Ingrese comp d2: ');
e1=d1
(e1,e2)
e2=0;
A1=(b2-a2)*(e1-a1)
A2=((c2-b2)*(d1-b1))/2
x=(((d1-b1)/2)*A1+((b1+c1+d1)/3)*A2)/(A1+A2)
y=(((b2-a2)/2)*A1+((b2+c2+d2)/3)*A2)/(A1+A2)
disp('Centro de Gravedad')
fprintf('\n')
disp('eje x eje y')
disp([x y])
CORRIENDO EL PROGRAMA:
===========================
CENTRO DE GRAVEDAD(NIVEL I)
===========================
Hallar el centro de gravedad de la figura:
Ingrese comp b2: 8
Ingrese comp c2: 14
Ingrese comp d1: 6
A1 =
48
A2 =
18
x=
2.7273
y=
5.6364
Centro de Gravedad
eje x eje y
2.7273 5.6364
ROZAMIENTO:
Tambin conocido como fuerza de friccin, a la fuerza entre dos superficies en contacto,
a aquella que se opone al movimiento entre ambas superficies (fuerza de friccin
dinmica) o a la fuerza que se opone al inicio del movimiento (fuerza de friccin esttica).
Se genera debido a las imperfecciones, mayormente microscpicas, entre las superficies
en contacto. Estas imperfecciones hacen que la fuerza perpendicular R entre ambas
superficies no lo sea perfectamente, si no que forme un ngulo con la normalN (el
ngulo de rozamiento). Por tanto, la fuerza resultante se compone de la fuerza normal N
(perpendicular a las superficies en contacto) y de la fuerza de rozamiento F, paralela a las
superficies en contacto.
Si la fuerza de rozamiento Fr es proporcional a la normal N, y a la constante de
proporcionalidad se la llama :
clc
clear all
b=4;
while b==4
disp( '==================================');
disp( '==================================');
disp('
ROZAMIENTO'
);
disp( '==================================');
fprintf('\n');
disp('1. ROZAMIENTO CON GRAVEDAD 10 m/s');
disp('2. ROZAMIENTO CON GRAVEDAD 9,8 m/s');
fprintf('\n');
disp( '==================================');
fprintf('\n');
x=0;
while x<=0 | x>=3
x=input(' Escoge una opcion: ');
end
if x==1
opcion=1;
end
if x==2
opcion=2;
end
switch opcion
case 1
b=3;
while b==3
clc
disp( '==========================================');
disp('
ROZAMIENTO CON 10 m/s en GRAVEDAD ');
disp( '==========================================');
fprintf('\n')
fprintf('\n');
disp('');
disp( '==========================================');
fprintf('\n');
a=input('INGRESE MASA TOTAL(g):');
while a<=0
a=input('INGRESE MASA TOTAL(g):');
end
b=input('INGRESE COEFICIENTE DE ROZAMIENTO:');
while b<=0
b=input('INGRESE COEFICIENTE DE ROZAMIENTO:');
end
c=a*b*10;
c=num2str(c);
c=strcat(c,'N');
fprintf('\n\n');
disp('LA FUERZA DE ROZAMIENTO ES:');
disp(c)
fprintf('\n')
b=input('Que desea hacer?([REGRESAR(4),REINTENTAR(3)]):');
end
case 2
b=3;
while b==3
clc
disp( '===================================================');
disp('
ROZAMIENTO CON 9,8 m/s en GRAVEDAD
');
disp( '===================================================');
fprintf('\n');
disp('');
fprintf('\n');
a=input('INGRESE MASA TOTAL(g):');
while a<=0
a=input('INGRESE MASA TOTAL(g):');
end
b=input('INGRESE COEFICIENTE DE ROZAMIENTO:');
while b<=0
b=input('INGRESE COEFICIENTE DE ROZAMIENTO:');
end
c=a*b*9.8;
c=num2str(c);
c=strcat(c,'N');
fprintf('\n\n');
disp('LA FUERZA DE ROZAMIENTO ES:')
disp(c)
fprintf('\n')
b=input('Que desea hacer?([REGRESAR(4),REINTENTAR(3)]):');
end
end
end
CORRIENDO EL PROGRAMA:
==========================================
ROZAMIENTO CON 10 m/s en GRAVEDAD
==========================================
==========================================
===================================================
ROZAMIENTO CON 9,8 m/s en GRAVEDAD
===================================================
39.2N
fprintf('X%d\t',k);
fprintf(':%d\t',x(k));
fprintf(' %10s\t','');
fprintf('Y%d\t',k);
fprintf(':%d\t',y(k));
fprintf(' %10s\t','');
fprintf('Z%d\t',k);
fprintf(':%d\t',z(k));
fprintf(' %10s\t','');
fprintf('Masa%d\t',k);
fprintf(':%d\n',m(k));
end
fprintf('\n\n')
fprintf('EL CENTRO DE MASA ES: %d\t');
fprintf('(%d\t');
fprintf('%5.2f\t',xcm);fprintf(';%d\t');
fprintf('%5.2f\t',ycm);fprintf(';%d\t');
fprintf('%5.2f\t',zcm);fprintf(')%d\n');
plot3(xcm,ycm,zcm,'rx');
text(xcm+.1,ycm+.1,zcm+.1,'Centro de Masa');
xlabel('Eje X'),ylabel('Eje Y'),zlabel('Eje Z');
hold on
for j = 1:n
plot3(x(j),y(j),z(j),'rx');
text (x(j)+.1,y(j)+.1,z(j)+.1,num2str(m(j)));
end
title('CENTRO DE MASA')
grid on
hold off
CORRIENDO PROGRAMA:
===================================================
CENTRO DE MASA DE "n" PARTICULAS
===================================================
Nmero de partculas: 4
Partcula 1
x: 2
y: 3
z: 5
M: 6
Partcula 2
x: -2
y: 3
z: 5
M: 7
Partcula 3
x: -9
y: 6
z: 3
M: 4
Partcula 4
x: 9
y: 6
z: 3
M: 11
================================================================================
================
Particulas
Eje x
Eje y
Eje z
Masas
================================================================================
=================
Particula 1
Masa1 :6
X1
:2
Y1
:3
Z1
:5
Particula 2
Masa2 :7
X2
:-2
Y2
:3
Z2
:5
Particula 3
Masa3 :4
X3
:-9
Y3
:6
Z3
:3
Particula 4
Masa4 :11
X4
:9
Y4
:6
Z4
:3
5
6
Eje Z
4.5
7
Centro de Masa
11
3.5
4
3
6
10
5
0
4
Eje Y
-5
-10
3
Eje X
CORRIENDO PROGRAMA:
=================================================
PROGRAMA PARA DETERMINAR LA PRESION (Pa)
=================================================
Ingrese el valor de la variacion de la fuerza en(N):16
Ingrese el area en (m^2): 4
FUERZA(N) PRESION(Pa)
--------------------------1.00
0.25
2.00
0.50
3.00
0.75
4.00
1.00
5.00
1.25
6.00
1.50
7.00
1.75
8.00
2.00
9.00
2.25
10.00
2.50
11.00
2.75
12.00
3.00
13.00
3.25
14.00
3.50
15.00
3.75
16.00
4.00
GRFICA:
GRAFICO PRESION V/S FUERZA
4
3.5
PRESION(Pa)
3
2.5
2
1.5
1
0.5
0
8
FUERZA(J)
10
12
14
16
sen(t+)
clear, clc
disp('----------------------------------------------------------------------');
disp('PROGRAMA PARA HALLAR LA POSICION ,VELOCIDAD Y ACELERACION EN UN
M.A.S.');
disp('----------------------------------------------------------------------');
a=input('ingrese el valor dela amplitud en m:');
while a==0;
'la amplitud no puede ser cero'
a=input('ingrese el valor dela amplitud en m:');
end
w=input('ingrese el valor de la velocidad angular en rad/s:');
x=input('ingrese el valor de teta en radianes:');
t=input('ingrese el valor del tiempo en seg :');
while t<0;
'no existe tiempo negativo'
t=input('ingrese el valor del tiempo en seg :');
end
for T=0:0.5:t
X=a*(sin((w*T)+x));
v=a*w*(cos((w*T)+x));
A=-a*w^2*(sin((w*T)+x));
disp(T X v
A')
disp([T X v A]);
subplot(2,2,1),plot(T,X,'o'),title('POSICION CON RESPECTO AL TIEMPO EN UN
M.A.S'),xlabel('tiempo en seg'),ylabel('posicion en metros'),grid on,hold on;
subplot(2,2,2),plot(T,v,'o'),title(' VELOCIDAD CON RESPECTO AL TIEMPO EN UN
M.A.S'),xlabel('tiempo en seg'),ylabel('velocidad en m/s'),grid on,hold on;
CORRIENDO PROGRAMA:
---------------------------------------------------------------------PROGRAMA PARA HALLAR LA POSICION ,VELOCIDAD Y ACELERACION EN UN M.A.S.
---------------------------------------------------------------------ingrese el valor dela amplitud en m:12
ingrese el valor de la velocidad angular en rad/s:5
ingrese el valor de teta en radianes:3
ingrese el valor del tiempo en seg :9
X
0
')
CORRIENDO PROGRAMA:
v
9
it
27
9.1000 27.3000
9.2000 27.6000
9.3000 27.9000
9.4000 28.2000
9.5000 28.5000
9.6000 28.8000
9.7000 29.1000
9.8000 29.4000
9.9000 29.7000
10
10.1000 30.3000
10.2000 30.6000
10.3000 30.9000
10.4000 31.2000
10.5000 31.5000 10.6000 31.8000
10.7000 32.1000
10.8000 32.4000 10.9000 32.7000
11
fprintf('%40s\t','');
disp('------------------------')
CORRIENDO EL PROGRAMA:
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
PROGRAMA PARA DETERMINAR LA ENERGIA MECANICA
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
==>ingrese la velocidad (m/s):12
==>ingrese la altura en que se encuentra el cuerpo (m):4
==>ingrese la masa (Kg):3
==>ingrese la constante elstica del resorte (N/m):2.6
==>ingrese la deformacin longitudinal ():2.1
----------------------------------------------------------------------------------------------------------------MASA.
ENERG.CINET.
ENERG.POTEN.
ENERG.ELAST.
ENERG.MEC.
-----------------------------------------------------------------------------------------------------------------1.00
72.00
39.20
5.73
116.93
2.00
144.00
78.40
5.73
228.13
3.00
216.00
117.60
5.73
339.33
----------------------------------------------------------------------------------------------------------------------------------------------FIN DEL PROGRAMA :)
------------------------------======================================================================
t=-1;
while t<0
t=input(' ingrese tiempo: ');
end
fprintf('%3.0s\t','')
disp('____________________________________________________________')
fprintf('%3.0s\t','')
fprintf('TIEMPO%d\t');fprintf(' %5s\t','');
fprintf('ESPACIO%d\t');fprintf(' %4s\t','');
fprintf('VELOCIDAD%d\t');fprintf(' %4s\t','');
fprintf('ACELERACIN%d\n');fprintf('\n\n');
fprintf('%3.0s\t','')
disp('____________________________________________________________')
for T=0:t
x=6*T.^2-T.^3;
v=12*T-3*T.^2;
a=12-6*T;
fprintf('%3.0s\t','')
fprintf('%4.0f\t',T);fprintf('%4.0s\t','');
fprintf('%4.0f\t',x);fprintf('%4.0s\t','');
fprintf('%4.0f\t',v);fprintf('%4.0s\t','');
fprintf('%4.0f\t',a);fprintf('\n\n');
subplot(3,1,1), plot(T,x,'dr'), hold on, grid on,
title('GRAFICA DE DESPACIO V/S TIEMPO'),
xlabel('tiempo(seg)'),
ylabel('distancia(m)'),
subplot(3,1,2), plot(T,v,'*b'), hold on, grid on,
title('GRAFICA DE VELOCIDAD V/S TIEMPO'),
xlabel('tiempo(seg)'),
ylabel('velocidad(m/s)'),
subplot(3,1,3), plot(T,a,'og'), hold on, grid on,
title('GRAFICA DE ACELERACION V/S TIEMPO'),
xlabel('tiempo(seg)'),
ylabel('aceleracion (m/s^2)'),
end
fprintf('%3.0s\t','')
disp('-----------------------------------------------------------')
CORRIENDO EL PROGRAMA:
____________________________________________________________
TIEMPO
ESPACIO
VELOCIDAD
ACELERACIN
____________________________________________________________
0
-1301
-636
12
1
-1301
-636
-1301
-636
-1301
-636
-6
-1301
-636
-12
-1301
-636
-18
-1301
-636
-24
----------------------------------------------------------------------------------------------------
....................................');
PROGRAMA PARA OBTENER LA ACELERACIN');
......................................');
CORRIENDO PROGRAMA:
................................................................................
PROGRAMA PARA OBTENER LA ACELERACIN
...................................................................................
Ingresar velocidad inicial (m/s) vi : 42
Ingresar velocidad final (m/s) vf : 13
Ingresar distancia(m)e : 8
EL MVIL:
DESACELERA
********************************************************************
velc.final
velc.inicial
espacio
aceleracin
(
13
42
)
/
8
=
-3.63
********************************************************************
................................................................................
PROGRAMA PARA OBTENER LA ACELERACIN
.................................................................................
Ingresar velocidad inicial(m/s)vi : 12
Ingresar velocidad final(m/s)vf : 45
Ingresar distancia(m)e : 9
EL MVIL:
ACELERA
********************************************************************
velc.final
velc.inicial
espacio
aceleracin
(
45
12
)
/
9
=
3.67
*********************************************************************
clc,clear all
disp('-------------------------------------------------------------------')
disp('
CAIDA LIBRE
')
disp('-------------------------------------------------------------------')
n=input('1(pregunta a),2(pregunta b):Cual escojes?: ');
while n<=0|n>3
n=input('1(pregunta a),2(pregunta b):');
end
if n==1;
option=1;
end
if n==2;
option=2;
end
switch option;
case 1;'Cual es la velocidad y la altura? de acuerdo a:'
disp('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~')
t=input('ingrese el tiempo: ');
while t<0| t>(-(-40)+sqrt((-40)^2-4*10*(-60)))/2*10;
t=input('ingrese el tiempo no mayor que: ');
end
for t=0:0.5:t;
s=60+40*t-10*t^2;
v=40-20*t;
a=20;
disp([s, v, a]);
subplot(1,2,1),plot(t,v,'r*'),title('grafico'),xlabel('tiempo'),ylabel('velocidad'), hold on;
subplot(1,2,2),plot(t,s,'r*'),title('grafico'),xlabel('tiempo'),ylabel('espacio'), hold on;
end
case 2; 'Cual es la altura maxima? de acuerdo a:'
disp('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~')
t=input('ingrese el tiempo: ');
for hmax=60+40*t-16.1*t^2;
disp('altura maxima tiempo')
disp([hmax,t]);
fprintf('%t,10.3s\f');
end
end
CORRIENDO PROGRAMA:
------------------------------------------------------------------CAIDA LIBRE
------------------------------------------------------------------1(pregunta a),2(pregunta b):Cual escojes?: 2
ans =
Cual es la altura maxima? de acuerdo a:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ingrese el tiempo: 5
altura maxima tiempo
-142.5000 5.0000
CORRIENDO EL PROGRAMA:
=========================================================
clc,clear all
disp('-----------------------------------------------')
disp('
DETERMINAR EL TRABAJO (W)
')
disp('-----------------------------------------------')
f=input('ingrese el valor de la fuerza (J): ');
x=input('ingrese el valor del angulo (C): ');
d=input('ingrese la distancia (m): ');
for F=1:f
disp('DISTANCIA FUERZA ANGULO TRABAJO')
W=F.*d.*cos(x);
disp([d,F,x,W]);
end
F=1:f;
W=F.*d.*cos(x);
CORRIENDO EL PROGRAMA:
----------------------------------------------DETERMINAR EL TRABAJO (W)
----------------------------------------------ingrese el valor de la fuerza (J): 30
ingrese el valor del angulo (C): 45
ingrese la distancia (m): 50
DISTANCIA
DISTANCIA
DISTANCIA
DISTANCIA
DISTANCIA
DISTANCIA
DISTANCIA
DISTANCIA
DISTANCIA
DISTANCIA
DISTANCIA
DISTANCIA
DISTANCIA
DISTANCIA
DISTANCIA
DISTANCIA
DISTANCIA
DISTANCIA
DISTANCIA
DISTANCIA
DISTANCIA
DISTANCIA
DISTANCIA
DISTANCIA
DISTANCIA
DISTANCIA
DISTANCIA
DISTANCIA
DISTANCIA
DISTANCIA
CORRIENDO PROGRAMA:
*+++*+++*+++*+++*+++*+++*+++*+++*+++*+++*+++*+++*+++*+++*+++
LA VELOCIDAD ANGULAR Y LA FRECUENCIA
*+++*+++*+++*+++*+++*+++*+++*+++*+++*+++*+++*+++*+++*+++*+++
w=
0.2618
frecuencia
f=
0.4112
tiempo(seg) desplazamiento(m)
1.0000 0.7854
2.0000 0.3927
3.0000 0.2618
GRFICA:
TIEMPO
2.2
2
1.8
1.6
1.4
1.2
1
0.2
0.3
0.4
0.5
0.6
DESPLAZAMIENTO
0.7
0.8
0.9