0% found this document useful (0 votes)
32 views13 pages

Advanced Mathematical Physics

Experiment about advanced mathematical physics

Uploaded by

Roy Ricky
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views13 pages

Advanced Mathematical Physics

Experiment about advanced mathematical physics

Uploaded by

Roy Ricky
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

SCILAB CODE(1-a)

clc
clear;
A=[2,1,1;1,3,2;3,1,4]
n=input("n=")
x=ones(3,1)
for i=1:0.001:n
Y1=A*x;
t=max(Y1)
X=(1/t)*Y1
x=X
end
disp(t,"eigen value")
disp(X,"Eigen vector")

CONSOLE RESULT
n=500

eigen value = 6.095824

Eigen vector = 0.4362882


0.7869595
1.
SCILAB CODE (1-b)
clc
clear
A=[2,1,1;1,3,2;3,1,4]
B=inv(A)
n=input("n=")
x=ones(3,1)
for i=1:0.001:n
Y1=B*x
D=max(Y1)
X1=(1/D)*Y1;
x=X1
end
disp(x,"Eigen vector")
E=1/D
disp(E,"Eigen value")

CONSOLE RESULT
n=500

Eigen vector=0.2938167
1.
- 0.8663097

Eigen value=1.5611972
SCILAB CODE (1-C)
clc
clear
a=[2,1,1;1,3,2;3,1,4]
[V,E]=spec(a)
disp(V,E)
CONSOLE RESULT
Eigen Values=
6.095824 0 0
0 1.452088 + 0.4336988i 0
0 0 1.452088 - 0.4336988i
Eigen Vectors=
0.3243216 0.3899937 - 0.1875413i 0.3899937 + 0.1875413i
0.5849985 0.5379993 + 0.2718959i 0.5379993 - 0.2718959i
0.7433655 - 0.6703451 - 0.6703451

SCILAB CODE (1-d)


clc
clear
b=[1,-%i,3+4*%i;%i,2,4;3-4*%i,4,3]
[V,E]=spec(b)
disp(V,E)

CONSOLE RESULT
Eigen value=

- 4.746829 0. 0.

0. 2.3968018 0.

0. 0. 8.3500273
Eigen vectors=
- 0.3404771 - 0.5212558i - 0.2734105 + 0.5541666i

- 0.4539695 + 0.0504648i - 0.3645474 - 0.6890355i

0.6353997 0.1023784

column 3

- 0.3192331 - 0.3586139i

- 0.4256442 - 0.0502727i

- 0.7653665

SCILAB CODE (1-E)


clc
clear
b=[2,-%i,2*%i;%i,4,3;-2*%i,3,5]
[V,E]=spec(b)
disp(V,E)
CONSOLE RESULT
Eigen values=
- 0.3871996 0. 0.
0. 3.6916109 0.
0. 0. 7.6955887
Eigen vector=
0.6662617i - 0.7255184i 0.1723904i
0.5184148 0.6168052 0.5922816
- 0.5360424 - 0.3052448 0.7870731
I have seen

You might also like