Graphics Reference
In-Depth Information
>> polyvalm([1,-6,-1,10,-11],ones(4))
ans =
-37 -26 -26 -26
-26 -37 -26 -26
-26 -26 -37 -26
-26 -26 -26 -37
Now let's find the roots of the polynomial x ^ 3-x :
>> roots([1,0,-1,0])
Ans =
0
-1.0000
1.0000
Now solve the equation -x ^ 5 + 2 * x ^ 4 + x ^ 3 + x ^ 2 = 0 :
>> roots([-1,2,1,1,0,0])
ans =
0
0
2.5468
-0.2734 + 0.5638i
-0.2734 - 0.5638i
eXerCISe 6-1
We consider the polynomial's coefficients a = [2, -4, 5, 8, 0, 0, 1] and b = [-7, 15, 0, 12, 0]. Calculate the
coefficients of the polynomials that are the product and quotient of a and b, also calculating the coefficients of the
polynomials that are the derivatives of the products and the quotients of a and b .
>> a=[2,-4,5,8,0,0,1]; b=[-7,15,0,12,0];
>> conv(a,b)
ans =
-14 58 -95 43 72 60 89 15 0 12 0
Search WWH ::




Custom Search