Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

         MA ADHU VAC CHSPATI I  INSTITUT

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.. 

Theory::­ A polynomial functioon is a functtion that can be defined by b evaluatinng a polynom


mial.
A functioon ƒ of one argument
a is called
c a polyynomial funcction if it sattisfies

For all arrguments x, where


w n is a non-negativve integer annd a0, a1,a2, ...,
. an are connstant
coefficiennts.

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 
 

You might also like