F-4 RahelSuryaniGultom Algo G 18 19 Nomor1
F-4 RahelSuryaniGultom Algo G 18 19 Nomor1
NIM : 4172240002
Kelas : Fisika Non-Kependidikan 2017
Dosen : Dr. Alkhafi Maas Siregar. M.Si
1. Program :
% Menghitung Jarak Benda
clc
%input
m=10
tetha=(60*pi)/180
t=0:1:10
x0=0
g=10
a=m*g*sin(tetha)/m
%proses
s=x0.*t+(1/2)*a*t.^2
plot(t,s)
%output
Hasil (Keluaran) :
m=
10
tetha =
1.0472
t=
Columns 1 through 10
0 1 2 3 4 5 6 7 8 9
Column 11
10
x0 =
0
g=
10
a=
8.6603
s=
Columns 1 through 6
Columns 7 through 11
GRAFIK
LAMPIRAN