Anda di halaman 1dari 7

# IV.

Tugas Akhir
Membuat solusi numerik untuk lempeng logam dengan persamaan dan
syarat batas sebagai berikut :
(

dan
(

( )

( )

(

## Persamaan untuk mencari nilai matriks A dan B yaitu :

(

=0

=0

= -20

=0

) =0

) =0

) = - 40

=0

) =0

) =0

) = - 60

) = - 40

=0

= - 20

Listing Program :
>> a=[-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4];
>> b=[1,1,1,0,1,1,1,0,1,1,1,0,1,1,1];
>>
>> c=[1,1,1,1,1,1,1,1,1,1,1,1];
>> A=diag(a)+diag(b,-1)+diag(b,+1)+diag(c,-4)+diag(c,+4);
>> B = [0; 0; 0; -20; 0; 0; 0; -40; 0; 0; 0; -60; -20; -40;60; -160 ];
>> w=inv(A)*B;
>> A
A =
-4
0

0
1

0
0

0
0

0
1

0
0

0
0

0
0

0
-4
0
1
0
0
0
0
0
1
0
0
0
0
0

0
1
0
-4
0
1
0
0
0
0
0
1
0
0
0

0
0
0
1
0
-4
0
0
0
0
0
0
0
1
0

0
0
0
0
0
0
0
-4
0
1
0
0
0
0
0

-4

-4

-4

0
0

0
0

0
1

0
1

0
0

0
-4
0
0
0
0
0
0
0
1

1
0
0
1
0
>> B
B =

0
0
0
-20
0
0
0
-40
0
0
0
-60
-20
-40
-60
-160
>> w
w =
4.0000

0
1

0
0

0
-4
0
1
0
0

-4

-4

0
0

0
0
-4
0
1
0
0
0
0

0
0

0
0

0
0

0
1

0
1

1
0

0
0

0
-4

0
0

1
0

0
0

0
0

1
0
-4
0
1

0
0
1
0
-4

8.0000
12.0000
16.0000
8.0000
16.0000
24.0000
32.0000
12.0000
24.0000
36.0000
48.0000
16.0000
32.0000
48.0000
64.0000
>>
Z=[0,20,40,60,80,100;0,16,32,48,64,80;0,12,24,36,48,60;0,8,16,
24,32,40;0,4,8,12,16,20;0,0,0,0,0,0];
>> x=0:0.1:0.5;
>> y=0.5:-0.1:0;
>> y=transpose(y)
>> [X,Y]=meshgrid(x,y)

X =

Y =

0.1000

0.2000

0.3000

0.4000

0.5000

0.1000

0.2000

0.3000

0.4000

0.5000

0.1000

0.2000

0.3000

0.4000

0.5000

0.1000

0.2000

0.3000

0.4000

0.5000

0.1000

0.2000

0.3000

0.4000

0.5000

0.1000

0.2000

0.3000

0.4000

0.5000

0.5000

0.5000

0.5000

0.5000

0.5000

0.5000

0.4000

0.4000

0.4000

0.4000

0.4000

0.4000

0.3000

0.3000

0.3000

0.3000

0.3000

0.3000

0.2000

0.2000

0.2000

0.2000

0.2000

0.2000

0.1000

0.1000

0.1000

0.1000

0.1000

0.1000

>> Z
Z =
0

20

40

60

80

100

16

32

48

64

80

12

24

36

48

60

16

24

32

40

12

16

20

>> surf(X,Y,Z)
Screenshot

## Menu Footer

### Dapatkan aplikasi gratis kami

Hak cipta © 2021 Scribd Inc.