Documentos de Académico
Documentos de Profesional
Documentos de Cultura
>> syms a b n t x z;
>> f = x^n;
>> g = sin(a*t + b);
>> symvar(f) ans = [ n, x]
>> symvar(g) ans = [ a, b, t]
>> sym(2)/sym(5)
ans = 2/5
>> sym(2/5)
ans = 2/5
>> 2/5 + 1/3
ans = 0.7333
>> sym(2/5) + sym(1/3)
ans = 11/15
la funcin collect.
>> syms x y;
>> R1 = collect((exp(x)+x)*(x+2))
R1 = x^2 + (exp(x) + 2)*x + 2*exp(x)
>> R2 = collect((x+y)*(x^2+y^2+1), y)
R2 = y^3 + x*y^2 + (x^2 + 1)*y + x*(x^2 + 1)
12
153/10*x^2+2*a*x+b
ans =
153/10*x^2+2*a*x+b
ans =
x^2
15
16
17