Graphics Reference
In-Depth Information
>> pretty(expand((x+y) *(x^4+x^2*y^2+y^4) * (x-y)))
6 6
x -y
this shows that the polynomial presents difficulties of expansion when you use only the command expand .
eXerCISe 6-4
Factorize as much as possible the following polynomial expressions.
2 2 2 4 2 2
a. 4 x + y t + z - 4 x y t + 4 x z - 2 y t z
4 2 2 2 2 3 2
b. x - x y + 2 x y + x - 2 x - y
c. a m x + a m y - b m x - b m y + b n x - a n x - a n y + b n y
>> syms x y z b m n t
>> pretty(factor(4*x^2+y^2*t^2+z^4-4*x*y*t+4*x*z^2-2*y*t*z^2))
2 2
(2 x - y t + z)
>> pretty(factor(x^4-x^2*y^2+2*x*y^2+x^2-2*x^3-y^2))
2
(x - 1) (x - y) (x + y)
>> pretty(factor(a*m*x+a*m*y-b*m*x-b*m*y+b*n*x-a*n*x-a*n*y+b*n*y))
(x + y) (m - n) (a - b)
in general, in polynomial expressions, the command expand performs operations and simplifies the result, and the
command factor factors the most.
>> pretty(expand((x-1)^2*(x-y)*(x+y)))
4 3 2 2 2 2 2
x - 2 x - x y + x + 2 x y - y
Search WWH ::




Custom Search