# Matlab

Solo disponible en BuenasTareas
• Páginas : 4 (812 palabras )
• Descarga(s) : 0
• Publicado : 9 de marzo de 2011

Vista previa del texto
PARTE A
1.-
>> syms x
>> syms a
>> syms b
>> syms c
>> syms d
1.-
>> ex1=x^2-1
ex1 =
x^2 - 1
>> ex2=(x+1)^2
ex2 =
(x + 1)^2
>> ex3=a*x^2-1
ex3 =
a*x^2 - 1
>> ex4=a*x^2+b*x+c
ex4 =a*x^2 + b*x + c
>> ex5=a*x^3+b*x^2+c*x+d
ex5 =
a*x^3 + b*x^2 + c*x + d
>> ex6=sin(x)
ex6 =
sin(x)
2.-
>> EX1=sym('X^2-1')
EX1 =
X^2 - 1
>> EX2=sym('(X+1)^2')
EX2 =
(X + 1)^2
>>EX3=sym('A*X^2-1')
EX3 =
A*X^2 - 1
>> EX4=sym('A*X^2+B*X+C')
EX4 =
A*X^2 + B*X + C
>> EX5=sym('A*X^3+B*X^2+C*X+D')
EX5 =
A*X^3 + B*X^2 + C*X + D
>> EX6=sym('sin(X)')
EX6 =
sin(X)
3.-
>>eq1=sym('x^2=1')
eq1 =
x^2 = 1
>> eq2=sym('(x+1)^2=0')
eq2 =
(x + 1)^2 = 0
>> eq3=sym('a*x^2=1')
eq3 =
a*x^2 = 1
>> eq4=sym('a*x^2+b*x+c=0')
eq4 =
a*x^2 + b*x + c = 0
>>eq5=sym('a*x^3+b*x^2+c*x+d=0')
eq5 =
a*x^3 + b*x^2 + c*x + d = 0
>> eq6=sym('sin(x)=0')
eq6 =
sin(x) = 0
4.-
>> EQ1=sym('X^2=1')
EQ1 =
X^2 = 1
>> EQ2=sym('(X+1)^2=0')
EQ2 =
(X + 1)^2 = 0
>> EQ3=sym('A*X^2=1')
EQ3 =A*X^2 = 1
>> EQ4=sym('A*X^2+B*X+C=0')
EQ4 =
A*X^2 + B*X + C = 0
>> EQ5=sym('A*X^3+B*X^2+C*X+D=0')
EQ5 =
A*X^3 + B*X^2 + C*X + D = 0
>> EQ6=sym('sin(X)=0')
EQ6 =
sin(X) = 0

Parte B
1.->> y1=ex1*ex2
y1 =
(x^2 - 1)*(x + 1)^2
2.-
>> y2=ex1/ex2
y2 =
(x^2 - 1)/(x + 1)^2
3.-
>> [n,d]=numden(y1)
n =
(x^2 - 1)*(x + 1)^2
d =
1
>> [n,d]=numden(y2)
n =
x^2 - 1
d =
(x + 1)^24.-
>> Y1=EX1*EX2
Y1 =
(x^2 - 1)*(x + 1)^2
5.-
>> Y2=EX1/EX2
Y2 =
(x^2 - 1)/(x + 1)^2
6.-
>> [N,D]=numden(Y1)
N =
(x^2 - 1)*(x + 1)^2
D =
1
>> [N,D]=numden(Y2)
N =
x^2 - 1
D =
(x +1)^2
7.-
>> [n,d]=numden(eq1)
Error in MuPAD command: Option List is not allowed for input of this type [normal]