Email:Algebra.aal15@gmail.com
2 XLV.
d d
mL= 2 =mg sin ( )c dy d 2 d
dt dt = =sin ( )a =sin ( x )ay
ds ds2 ds
XXXVII. dimana adalah
3. Hasil dan Pembahasan
pergerakan sudut pendulum secara A. Hasil
vertical. L adalah panjang 1. Pegas
LXII. yp=pegas(t,y)
LXIV. k=1;konstanta
pegas
LXV. yp=[y(2);(-
LXXVIII.
m/k)*y(1)];%pesramaan
Selanjutnya isi persamaan untuk
sistem pegas
LXVI. simpan dengan nama
x'= y dan y ' =sin ( x )ay ,
pegas.m. selanjtunya, ketikkan
script berikut ini dan simpan dengan seperti gambar berikut ini :
LXXIX.
nama solusi_spegas.m
LXVII. clc;
LXVIII. clear
LXIX. all;
LXX. tspan=[0 4];
LXXI. y0=[0.02;0];
LXXII. [t1,y1]=ode45('peg
as',tspan,y0);
LXXIII. set(plot(t1,y1(:,1
),'color','red'));
LXXIV. hold on;
LXXV. dengan menggunakan
pplane8 untuk mengetahui LXXX. Nilai a=0 selanjutnya
pergerakan pendulum. Pada akan berubah menjadi bilangan
command window, ketikkan pplane8 bulat , perhatikan bidan phase
pendulum. Selanjutnya, CI. Kreyzig, E., Advanced
Engineering Mathematics, 7th
memasukkan nilai awal, dengan cara
edition, John Wiley & Sons
option-mark initial point -keyboard Inc,
LXXXI. input. New York, 1993.
LXXXII.
LXXXIII. CII.
LXXXIV. CIII. APPENDIX
LXXXV.
LXXXVI. 1. Program Pegas
LXXXVII. CIV. function yp=pegas(t,y)
LXXXVIII. Input CV. m=100; % berat beban
dalam kg
x (0)=2 dan y (0)=0 CVI. k=1; %konstanta pegas
dan klik
CVII. yp=[y(2);(-
compute. m/k)*y(1)]; %pesramaan sistem
LXXXIX. pegas
CVIII.
XC. CIX. solusi_spegas.m
XCI. CX. clc;
XCII. CXI. clear all;
XCIII. CXII. tspan=[0 4];
CXIII. y0=[0.02;0];
XCIV. CXIV. [t1,y1]=ode45('pega
XCV. s',tspan,y0);
XCVI. CXV. set(plot(t1,y1(:,1),'colo
XCVII. r','red'));
CXVI. hold on;
CXVII.
XCVIII. DAFTAR PUSTAKA 2. Program Pendulum
CXVIII. function output =
pplane8(action,input1,
XCIX. Chapra, S.C., and Canale, R.P.,
input2,input3)
Metode Numerik, Jilid 1, edisi CXIX. % pplane8 is an
kedua. Penerbit interactive tool for
Erlangga, Jakarta, 1986. studying planar
autonomous systems of
C. Koffman,E.B., and Friedman, CXX. % differential
F.L., Fortran With Engineering equations. When
Application, 5th edition, pplane8 is executed, a
Addison-Wesley Publishing pplane8 Setup
Company, New York, 1993. CXXI. % window is
opened. The user may
enter the differential
CXXII. % equation and CXXX. % the pplane8
specify a display Display window, the
window using the solution to the system
interactive with that
CXXIII. % controls in the CXXXI. % initial
Setup window. Up to 4 condition is
parameters may also be calculated and
CXXIV. % specified. In plotted.
addition the user is CXXXII. % Other options
give a choice of the are available in the
type of menus. These are
CXXV. % field displayed CXXXIII. % fairly
and the number of self explanatory.
field points. CXXXIV. % This is version
CXXVI. % 6.0, and will only run
CXXVII. % When the on version 6 of
Proceed button is MATLAB.
pressed on the Setup CXXXV. % Copywright (c)
window, the pplane8 1995, 1997, 1998,
CXXVIII. % Display 1999, 2000, 2001,
window is opened, and 2002, 2003
a field of the type CXXXVI. %
requested is John C. Polking, Rice
CXXIX. % displayed for University
the system. When the CXXXVII. %
mouse button is Last Modified: April
depressed in 24, 2003
CXXXVIII.