Professional Documents
Culture Documents
Exeperiment 2
Exeperiment 2
TE OF ENGGG. & TECHNOLOGY
Y
NUMERICA
N AL TECHNIIQUE LAB (EEE-351)
Exp
periment No.2
Objective: Dettermination of
o roots of a polynomiall.
Apparattus Require
ed: Mat lab Software..
Comman
nd: For Roots of polynomial >>roots(P)
Where P
P is a row m
matrix containing the elements as tthe coefficieent of the po
olynomials P
P.
Example
e: Take aa a polynom
mial as given under,
5 6
Then thee P matrix wwill be as P=
=[ 1 5 6]
P=[1 5 6 6]
P =
1 5 6
>> r=roo ots(P)
r =
‐3.0000 0
‐2.0000 0
Results:: The roots of given poolynomial arre x=‐2 & x=‐3.
Experimeent No.2 P
Page 1