You are on page 1of 8

CUARTA PRACTICA

NOMBRE: MAYNA CHARA VICTOR HUGO GRUPO: A

>> g=[1 0 -3 -1 2.4];


>> h=[0 4 -2 6 -16];
>> g+h
ans =
1.0000 4.0000 -5.0000 5.0000 -13.6000
>> g-h
ans =
1.0000 -4.0000 -1.0000 -7.0000 18.4000
>> r=conv(g,h)
r=
Columns 1 through 5
0 4.0000 -2.0000 -6.0000 -14.0000
Columns 6 through 9
-6.4000 37.2000 30.4000 -38.4000
>> h=[4 -2 6 -16];
>> [Q,R]=deconv(g,h);
>> Q
Q=
0.2500 0.1250
>> R
R=
0 0 -4.2500 2.2500 4.4000
>> conv(Q,h)+R
ans =
1.0000 0 -3.0000 -1.0000 2.4000
>> 3*g
ans =
3.0000 0 -9.0000 -3.0000 7.2000
>> p=[1 -3 -1 3];
>> roots(p)
ans =
3.0000
-1.0000
1.0000
>> j=[1 -6 12 -6];
>> roots(j)
ans =
2.6300 + 1.0911i
2.6300 - 1.0911i
0.7401 + 0.0000i
>> l=[1 0 -12 16];
>> roots(l)
ans =
-4.0000
2.0000
2.0000
>> k=[1 -2 -3 10];
>> roots(k)
ans =
-2.0000 + 0.0000i
2.0000 + 1.0000i
2.0000 - 1.0000i
>> syms x
>> solve('x-3=4','x')
ans =
7
>> syms x
>> solve('x^2-x-6=0','x')
ans =
3
-2
>> syms x
>> solve('x^2+2*x+4=0','x')
ans =
3^(1/2)*i - 1
- 3^(1/2)*i - 1
>> syms x y z
>> solve('3*x+2*y-z=10,-x+3*y+2*z=5,x-y-z=-1','x,y,z')
ans =
x: [1x1 sym]
y: [1x1 sym]
z: [1x1 sym]
>> syms x
>> solve('3*x*a=b','x')
ans =
b/(3*a)
>> syms x y
>> a=3*x^3-2*x^2+3*x-1;
>> b=(x-2)^2+(y+1)^2;
>> c=sqrt(x^2*y^3);
>> d=3*y^3/(3*x*y);
>> factor(a)
ans =
3*x^3 - 2*x^2 + 3*x - 1
>> expand(b)
ans =
x^2 - 4*x + y^2 + 2*y + 5
>> collect(b)
ans =
x^2 - 4*x + (y + 1)^2 + 4
>> collect(b,'y')
ans =
y^2 + 2*y + (x - 2)^2 + 1
>> simple(d)
ans =
y^2/x
>> syms x >> syms x a
>> f=(exp(x)-1)/log(1+x); >> f=(x*exp(a*x)-x)/(1-cos(a*x));
>> limit(f,x,0) >> limit(f,x,0)
ans = ans =
1 2/a
>> syms x
>> f=(x+sin(pi*x))/(x-sin(pi*x));
>> limit(f,x,0)
ans =
-(pi + 1)/(pi - 1)
>> syms x
>> f=(exp(x)+x)^(1/x);
>> limit(f,x,0)
ans =
exp(2)
>> syms x
>> f=(sin(3*x))/(1-2*cos(x));
>> limit(f,x,pi/3)
ans =
-3^(1/2)
>> syms x
>> f=(x^4+1)^(1/log(x));
>> limit(f,x,inf)
ans =
exp(4)
>> syms x
>> f=(x^2/2-x/3)*(7-5*x^6)^2;
>> diff(f)
ans =
(5*x^6 - 7)^2*(x - 1/3) - 60*x^5*(- x^2/2 + x/3)*(5*x^6 - 7)
>> diff(f,2)
ans =
(5*x^6 - 7)^2 - 1800*x^10*(- x^2/2 + x/3) - 300*x^4*(- x^2/2 + x/3)*(5*x^6 - 7) +
120*x^5*(5*x^6 - 7)*(x - 1/3)
>> syms x
>> f=(7*x-5)^2*(4*x^3+3*x)/(x-1)^2;
>> diff(f)
ans =
((98*x - 70)*(4*x^3 + 3*x))/(x - 1)^2 - (2*(7*x - 5)^2*(4*x^3 + 3*x))/(x - 1)^3 + ((7*x -
5)^2*(12*x^2 + 3))/(x - 1)^2
>> diff(f,2)
ans =
(98*(4*x^3 + 3*x))/(x - 1)^2 - (4*(98*x - 70)*(4*x^3 + 3*x))/(x - 1)^3 + (2*(98*x - 70)*(12*x^2
+ 3))/(x - 1)^2 + (6*(7*x - 5)^2*(4*x^3 + 3*x))/(x - 1)^4 + (24*x*(7*x - 5)^2)/(x - 1)^2 - (4*(7*x -
5)^2*(12*x^2 + 3))/(x - 1)^3

>> syms x
>> syms x a b c d e f
>> g=(d*x^2+e*x+f)/(x^2/a+x/b+1/x);
>> diff(f)
ans =
1
>> diff(f,2)
ans =
0
>> syms x a b c
>> f=(x-a)*(x-b)*(x-c);
>> diff(f)
ans =
(a - x)*(b - x) + (a - x)*(c - x) + (b - x)*(c - x)
>> diff(f,2)
ans =
6*x - 2*b - 2*c - 2*a
>> syms x a
>> f=(x+a)^(1/3)*(x-a)^(1/3);
>> diff(f)
ans =
(a + x)^(1/3)/(3*(x - a)^(2/3)) + (x - a)^(1/3)/(3*(a + x)^(2/3))
>> diff(f,2)

ans =
2/(9*(a + x)^(2/3)*(x - a)^(2/3)) - (2*(a + x)^(1/3))/(9*(x - a)^(5/3)) - (2*(x - a)^(1/3))/(9*(a +
x)^(5/3))
>> syms x
>> f=sqrt(1+(x^2-7)^(1/2));
>> diff(f)
ans =
x/(2*(x^2 - 7)^(1/2)*((x^2 - 7)^(1/2) + 1)^(1/2))
>> diff(f,2)
ans =
1/(2*(x^2 - 7)^(1/2)*((x^2 - 7)^(1/2) + 1)^(1/2)) - x^2/(4*(x^2 - 7)*((x^2 - 7)^(1/2) + 1)^(3/2)) -
x^2/(2*(x^2 - 7)^(3/2)*((x^2 - 7)^(1/2) + 1)^(1/2))
>> syms x >> f=(x+1)/(x^2+4*x+5);
>> f=log10(x)/sqrt(x); >> int(f)
>> int(f) ans =
ans = log(x^2 + 4*x + 5)/2 - atan(x + 2)
(2*x^(1/2)*(log(x) - 2))/log(10) >> syms x
>> syms x >> f=x^2/(x^2-x+1);
>> f=atan(sqrt(x)); >> int(f)
>> int(f) ans =
ans = x + log(x^2 - x + 1)/2 -
(3^(1/2)*atan((2*3^(1/2)*x)/3 -
atan(x^(1/2)) + x*atan(x^(1/2)) - x^(1/2) 3^(1/2)/3))/3
>> syms x a b >> syms x
>> f=a/(x^2+b^2); >> f=x^2/(x^2+x+1);
>> int(f) >> int(f)
ans = ans =
(a*atan(x/b))/b x - log(x^2 + x + 1)/2 -
>> syms x (3^(1/2)*atan((2*3^(1/2)*x)/3 +
3^(1/2)/3))/3

You might also like