Investigtacion
Páginas: 2 (458 palabras)
Publicado: 2 de mayo de 2012
Nombre: Jaime Sailema
Semestre: Cuarto “A”
1) Escribir en matlab las siguientes ecuaciones
1.1
>> 5sqrt(81).^(1/6)*cos(pi/2)
1.2
>>exp(45)*cos(3*pi/2)
3) f(x)= cos(x) en el intervalo -3.1416<=x<=3.1416
>> x=-pi:0.1:pi
x =
Columns 1 through 6
-3.1416 -3.0416 -2.9416 -2.8416
-2.7416 -2.6416>> y=cos(x)
y =
Columns 1 through 6
-1.0000 -0.9950 -0.9801 -0.9553
-0.9211 -0.8776
>> plot(x,y)
4) f(x)= en el intervalo 0<=x<=5
>>x=0:0.1:5
x =
Columns 1 through 6
0 0.1000 0.2000 0.3000 0.4000 0.5000
>> y=x.^2+5*x
y =
Columns 1 through 6
0 0.5100 1.0400 1.5900 2.16002.7500
>> plot(x,y)
5) Graficar con inline y ez plot las siguientes funciones.
5.) f(x)= x-3x+2x en el rango 0<=x<=5
>> y=inline('x.^5-3*x.^3+2x+6')
y =
Inlinefunction:
y(x) = x.^5-3*x.^3+2x+6
>> x=0:0.1:5
x =
Columns 1 through 6
0 0.1000 0.2000 0.3000 0.4000 0.5000
6.) f(x)= senh (x) en el rango-3.1416/2<=x<=3.1416
>> y=inline('sinh(x)')
y =
Inline function:
y(x) = sinh(x)
>> x=-pi/2:0.1:pi/2
x =
Columns 1 through 6
-1.5708 -1.4708 -1.3708 -1.2708 -1.1708 -1.0708>> plot(x,y(x))
7) Crear un scrip para graficar un rectángulo
%RECT
%grafica del rectangulo
x=[0 5 5 0 0];
y=[0 0 3 3 0 ];
plot(x,y,'g-')
z=[2,5 2,5];
s=[0 3];
hold on
plot(z,s,'r-')return
>> RECT
8) Crear un scrip para graficar un triangulo
%TRIA
%grafica del triangulo
x=[0 2.5 5];
y=[0 5 0];
plot(x,y,'b-.')
return
9) Calcular el área y perímetro de unrectángula dado la base y la altura (a,b)
%APRECT
%grafica del rectangulo
function [A,P]=APRECT(a,b)
A=a*b;
P=2*(a+b);
return
>> [Ar,Pr]=APRECT(4,3)
Ar = 12
Pr = 14
10) Calcular el área y...
Leer documento completo
Regístrate para leer el documento completo.