Matematica Laboratorio
Enviado por Gabrielvmw • 23 de Febrero de 2016 • Tarea • 13.407 Palabras (54 Páginas) • 194 Visitas
Problema 1
>> 5+2
ans =
7
>> 5*2
ans =
10
>> 5/2
ans =
2.5000
>> (3*2)+(4+3)
ans =
13
>> (2.54*8)/2.6
ans =
7.8154
>> 6.3-2.1045
ans =
4.1955
>> 3.6^2
ans =
12.9600
>> 1+(2^2)
ans =
5
>> 5^(1/2)
ans =
2.2361
>> cos(pi)
ans =
-1
>> (5+3)/(9-1)
ans =
1
>> (2^3)-(4/(5+3))
ans =
7.5000
>> (5^(1+2)/(4-1))
ans =
41.6667
>> 4*(1/2)*(5*(2/3))
ans =
6.6667
>> 5+(6*(7/3)-(2^2))/(2/3)*(3/(3*6))
ans =
7.5000
Problema 2
>> b=mod(89,18)
b =
17
>> isprime(17)
ans =
1
>> lcm(65,6)
ans =
390
>> factor(390)
ans =
2 3 5 13
>> num2str(gcd(gcd(14,35),gcd(21,91)))
ans =
7
>> R=rat((1/2)+(3/4))
R =
1 + 1/(4)
>> rat(((1+3)/5)^5)
ans =
0 + 1/(3 + 1/(19 + 1/(3 + 1/(9))))
Problema 3
>> syms x
>> f=x^2 - 4*x + 13
f =
x^2 - 4*x + 13
>> solve (f)
ans =
2 - 3i
2 + 3i
>> complex(4,2)
ans =
4.0000 + 2.0000i
>> z=ans
z =
4.0000 + 2.0000i
>> angle(2-3*i)
ans =
-0.9828
>> angle(2+3i)
ans =
0.9828
>> anguloentrex1yx2=0.9828-(-0.9828)
anguloentrex1yx2 =
1.9656
>> x1=2-3*i
x1 =
2.0000 - 3.0000i
>> x2=2+3*i
x2 =
2.0000 + 3.0000i
>> abs(z+x1+x2)
ans =
8.2462
>> real(x1/x2)
ans =
-0.3846
>> imag(z^3)
ans =
88
>> conj(x1)
ans =
2.0000 + 3.0000i
>> conj(x2)
ans =
2.0000 - 3.0000i
>> (cos(x1)+sin(x2))
ans =
4.9649 + 4.9403i
Problema 4
>> syms t w x y
>> f(x)=exp(x) - x*sin(x+1)
f(x) =
exp(x) - x*sin(x + 1)
>> h(w,y)= tan(w+y) - (w/y)
h(w, y) =
tan(w + y) - w/y
>> g(x)=asin(exp(x)/x)-1
g(x) =
asin(exp(x)/x) - 1
>> x=-1;eval(f(x))
ans =
0.3679
>> w=0 , y=1; eval(h(w, y))
w =
0
ans =
1.5574
>> x=-1.5;eval(g(x))
ans =
-1.1493
...