Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Date 12/8/13

subject= N.T . LAB EEE-351


Software=MATLAB 7.12.0(R2011a)
PROGRAM

Page no.4

Aim=Q.Determination of roots of polynomials


p=[1 5 2 5 2 8 10]

p=1

8 10

r=roots(p)

r = -4.7934
0.7980 + 0.9010i
0.7980 - 0.9010i
-0.4585 + 1.1899i
-0.4585 - 1.1899i
-0.8856

q = [1 2 3 ; 4 5 6 ; 8 9 0 ]

q=1

e = eigs(q)
RESULT
e = 12.6114
-6.2295
-0.3819

Name= Himanshu Tiwari

Roll no.=1228421020

Date 12/8/13
subject= N.T . LAB EEE-351
Software=MATLAB 7.12.0(R2011a)

Page no.5

a = [ 1 6 0 ; 0 1 5 ; 11 0 1 ]

a =1

11

b = [13;17;14]

b = 13
17
14

x = linsolve(a,b)

x =1.0000
2.0000
3. 0000

Precautions
Use correct syntax while solving the problms
Save the file after completing the program
Use the HELP option for proper syntax information

Name= Himanshu Tiwari

Roll no.=1228421020

You might also like