Anda di halaman 1dari 5

METODE NUMERIK

OLEH :

Athea Sabrina Budiman (4517213001)

PROGRAM STUDI TEKNIK INFORMATIKA


FAKULTAS TEKNIK
UNIVERSITAS PANCASILA
2019
1. Persamaan Polinomial
x^4 + 0x^3 + 0x^2 + x + 3 = 0

Memasukan rumus:
v = [ 1, 0, 0, 1,3 ];
s = roots (v);

disp ('Numeric value of first root'), disp(double(s(1)));


disp ('Numeric value of second root'), disp(double(s(2)));
disp ('Numeric value of third root'), disp(double(s(3)));
disp ('Numeric value of fourth root'), disp(double(s(4)));
Hasil :

2. SPL
5 1 7 1

2 1 4 2

4 1 3 3

Memasukan rumus:
a = [ 5, 1, 7; 2, 1, 3; 17, 17, 1];
b = [ 1;2;3 ];
a\b

Hasil :

Anda mungkin juga menyukai