Вы находитесь на странице: 1из 54

LAPORAN

PROGRAM INTEGRAL LIPAT DUA DAN TIGA

Dosen :
Dr. Ir. Rusmono
NIDN. 0006055905

Disusun oleh :
( Kelompok 3 )
Indrawati 1513618009
Izzulhaq Husein Panji S. 1513618010
Mohamad Alvarez R. K. 1513618014
Naili Mahfiroh 1513618067
Nurida Irmadania 1516618044
Nurul Sahidati 1513618007

Pendidikan Teknik Elektronika


Fakultas Teknik
Universitas Negeri Jakarta
2019
KATA PENGANTAR

Puji syukur kami panjatkan atas kehadirat Allah SWT yang telah memberikan rahmat
serta karunia-Nya kepada kami sehingga kami dapat menyelesaikan tugas mata kuliah
Matematika II dengan pembahasan “Integral lipat dua dan tiga”.

Laporan ini dibuat untuk memberikan informasi tentang Integral lipat dua dan tiga
dengan menggunakan aplikasi MATLAB. Kami berharap makalah ini dapat memberikan banyak
manfaat kepada kita semua. Kami juga memohon maaf jika dalam makalah ini terdapat
kesalahan. Kami akan menerima kritik dan saran dari berbagai pihak agar selanjutnya kami bisa
membuat tugas yang lebih baik lagi

Kami berharap agar laporan Matematika II ini dapat diterima untuk memenuhi
persyaratan nilai mata kuliah Matematika II. Atas perhatiannya kami ucapkan terima kasih.

Jakarta, 20 Juni 2019

Kelompok 3

ii
DAFTAR ISI

KATA PENGANTAR ................................................................................................................ ii

DAFTAR ISI ............................................................................................................................... iii

BAB I PENDAHULUAN ......................................................................................................... 1

1.1 Latar Belakang ........................................................................................................ 1

1.2 Rumusan Masalah ................................................................................................... 1

1.3 Tujuan ..................................................................................................................... 2

BAB II PEMBAHASAN ........................................................................................................... 3

2.1 Pengertian Integral lipat dua dan tiga .................................................................... 3

2.2 Konsep .................................................................................................................... 3

2.3 Prosedur .................................................................................................................. 4

2.4 Contoh Soal ............................................................................................................. 4

BAB III PENUTUP .................................................................................................................... 10

3.1 Kesimpulan ............................................................................................................ 10

3.2 Saran ....................................................................................................................... 10

DAFTAR PUSTAKA ............................................................................................................... 11

LAMPIRAN................................................................................................................................. 12

1. Algoritma Program
2. Flowchart
3. List Program

iii
BAB I

PENDAHULUAN

1.1 Latar Belakang

Integral lipat dua dan tiga atau disebut sebagai Integral lipat adalah sebuah integral
tentu yang lebih dari satu variabel riil, sebagai contoh, f(x,y) atau f(x, y, z). Integral dari
fungsi pada dua variabel dari daerah dalam R2 disebut Integral lipat dua, dan integral dari
sebuah fungsi pada tiga variabel dari daerah pada R3 disebut sebagai Integral lipat tiga.

Sama seperti integral tentu dari fungsi positif pada salah satu variabel yang
mewakilkan batas dari daerah diantara grafik fungsi dan sumbu x, integral lipat dua pada
fungsi positif dari dua variabel mewakilkan volume dari daerah diantara permukaan
ditentukan oleh fungsi pada sistem koordinat kartesius dimensi tiga dimana z = f(x,y) yang
terdapat domain. Jika terdapat banyak variabel, akan menghasilkan volume fungsi
multidimensional yang lebih dari satu.

Untuk memudahkan dalam proses menghitung Integral lipat dua dan tiga, maka
digunakan aplikasi untuk memenuhi penyelesaian beberapa persoalan matematika tentang
Integral lipat dua dan tiga. Software yang digunakan dalam pembuatan aplikasi adalah
MATLAB versi 2017a. Dengan menggunakan MATLAB versi 2017a kita dapat
mengujicoba dengan membandingkan antara hasil perhitungan manual dengan hasil dari
output program aplikasi MATLAB 2017a, sehingga terdapat kesesuaian hasil yang sama
dan benar.

Dengan menggunakan aplikasi MATLAB 2017a, diharapkan kepada para pengguna


dapat menyelesaikan berbagai macam soal Integral lipat dua dan tiga dengan lebih cepat
dan akurat.

1.2 Rumusan Masalah

1. Apa definisi Integral lipat dua dan tiga?


2. Bagaimana cara menyelesaikan contoh soal Integral lipat dua dan tiga?
3. Bagaimana program berjalan dalam menyelesaikan soal Integral lipat dua dan tiga?

1
1.3 Tujuan

1. Mengetahui definisi Integral lipat dua dan tiga.


2. Mengetahui rumus-rumus Integral lipat dua dan tiga.
3. Mengetahui penyelesaian soal dengan menggunakan program dari MATLAB 2016b.
4. Membuka wawasan dalam menggunakan MATLAB dalam menyelesaikan soal-soal
Integral lipat dua dan tiga.

2
BAB II

PEMBAHASAN

2.1. Pengertian Integral lipat dua dan tiga

Secara pengertian, dapat dijelaskan kembali bahwa kedua jenis integral yaitu Integral
lipat dua dan tiga adalah adalah sebuah integral tentu yang lebih dari satu variabel riil.
Kedua jenis integral dikatakan sebagai integral tentu karena bentuk integralnya memiliki
batasan pada variabel integrasinya. Batasan pada variabel integrasi ini disebut sebagai batas
atas dan batas bawah.

Dalam pengaplikasiannya dalam bidang Matematika, secara dasar keduanya memiliki


pengaplikasian pada sifat Aljabar, Trigonometri, dan Eksponensial. Pada tingkat lanjut,
keduanya memiliki pengaplikasian yang berbeda seperti Integral lipat dua yang cenderung
diaplikasikan pada perhitungan bidang dua dimensi seperti segiempat, segitiga, persegi
panjang dengan bentuk umum ∬ 𝑓(𝑥, 𝑦) 𝑑𝐴 yang biasa digunakan dalam perhitungan luas
pada bidang datar. Pada Integral lipat tiga, pengaplikasian cenderung pada bidang tiga
dimensi yang memiliki volume seperti tabung, kubus dengan bentuk umum ∭f (x, y,z) dV.

2.2. Konsep Penyelesaian Masalah

1. Integral lipat dua

Integral lipat dua merupakan integral yang hasilnya diintegralkan kembali. Atau
diintegralkan sebanyak dua kali. Dinyatakan juga sebagai berikut:

𝑦2 𝑥2 𝑥2 𝑦2
∫𝑦1 ∫𝑥1 𝑓(𝑥, 𝑦) 𝑑𝑥𝑑𝑦 atau ∫𝑥1 ∫𝑦1 𝑓(𝑥, 𝑦) 𝑑𝑦𝑑𝑥

Pernyataan diatas disebut dengan integral lipat dua tertentu dengan batas atas (x2
dan y2) dan batas bawah (x1 dan y1)

3
2. Integral lipat tiga
Integral lipat tiga merupakan integral yang hasilnya diintegralkan dan kemudian
diintegralkan kembali. Dinyatakan juga sebagai berikut:
z2 y2 𝑥2
∫𝑧1 ∫𝑦1 ∫𝑥1 𝑓(𝑥, 𝑦, 𝑧) 𝑑𝑥𝑑𝑦𝑑𝑧

Pernyataan diatas disebut dengan integral lipat tiga tertentu dengan batas atas (z 2;
x2; dan y2) dan batas bawah (z1; x1; dan y1)

2.3. Prosedur

2.3.1 Integral lipat dua


1. Integralkan terhadap y dengan mengganggap variabel x sebagai konstanta dan
substitusikan dari batas y.
2. Integralkan terhadap x dengan mengganggap variabel x sebagai konstanta dan
substitusikan batas dari x.
2.3.2. Integral lipat tiga
1. Integralkan terhadap z dengan mengganggap variabel x dan y sebagai konstanta
dan substitusikan dari batas z.
2. Integralkan terhadap y dengan mengganggap variabel y sebagai konstanta dan
substitusikan batas dari y.
3. Integralkan terhadap x dan substitusikan batas dari x.

2.4. Contoh soal

Dalam contoh soal terdapat dua jenis sesuai dengan jenis integral yang dibahas dalam
makalah yaitu Integral lipat dua dan lipat tiga dengan menggunakan prosedur yang telah
ditentukan.

1. Integral lipat dua


a. Aljabar
1 −1
Selesaikan persoalan dari ∫0 ∫−3 (4𝑥 + 3𝑦)𝑑𝑦 𝑑𝑥 dengan menggunakan prosedur
yang telah ditentukan.

4
Penyelesaian :
1) Integralkan terhadap y dengan mengganggap variabel x sebagai konstanta dan
substitusikan dari batas y.
1 −1
∫0 ∫−3 (4𝑥 + 3𝑦)𝑑𝑦 𝑑𝑥
1 3
= ∫0 (4𝑥𝑦 + 2 𝑦 2 ) |−1
−3 𝑑𝑥

1 3 27
= ∫0 (−4𝑥 + 2) − (−12𝑥 + ) 𝑑𝑥
2
1
= ∫0 8𝑥 − 12𝑑𝑥
2) Integralkan terhadap x dengan mengganggap variabel x sebagai konstanta dan
substitusikan batas dari x.
1
∫0 8𝑥 − 12𝑑𝑥
= 4𝑥 2 − 12𝑥|10
= (4(1)2 − 12(1)) − (4(0)2 − 12(0))
= 4 − 12 = −8

b. Eksponensial
1 𝑦2
Selesaikan persoalan dari ∫0 ∫0 (2𝑦𝑒 𝑥 )𝑑𝑥 𝑑𝑦 dengan menggunakan prosedur yang
telah ditentukan.
Penyelesaian :
1) Integralkan terhadap x dengan mengganggap variabel y sebagai konstanta dan
substitusikan dari batas x.
1 𝑦2
∫0 ∫0 (2𝑦𝑒 𝑥 )𝑑𝑥 𝑑𝑦
1 𝑦2
= ∫0 (2𝑦𝑒 𝑥 )|0 𝑑𝑦
1 2
= ∫0 (2𝑦𝑒 𝑦 ) − (2𝑦𝑒 0 )𝑑𝑦
1 2 1
= ∫0 𝑒 𝑦 𝑑( 𝑦 2 ) − 2 ∫0 y dy

5
2) Integralkan terhadap y dengan mengganggap variabel y sebagai konstanta dan
substitusikan batas dari y
1 2 1
∫0 𝑒 𝑦 𝑑( 𝑦 2 ) − 2 ∫0 y dy
2 𝑦2 1
= 𝑒 𝑦 |10 – 2 |
2 0
1
= 𝑒 − 1 − 2 (2)

=𝑒−2
c. Trigonometri
𝜋
2
Selesaikan persoalan dari ∫0 ∫02 (𝑥 sin 𝑦) 𝑑𝑦𝑑𝑥 dengan menggunakan prosedur yang
telah ditentukan.
Penyelesaian :
1) Integralkan terhadap y dengan mengganggap variabel x sebagai konstanta dan
substitusikan dari batas y.
𝜋
2
∫0 ∫02 (𝑥 sin 𝑦) 𝑑𝑦𝑑𝑥
𝜋
2 2
= ∫0 𝑥 (− cos 𝑦) |0 𝑑𝑥
2 𝜋
= ∫0 𝑥 [− cos −(− cos 0)] 𝑑𝑥
2
2
= ∫0 𝑥 (0 + 1) 𝑑𝑥
2
= ∫0 𝑥 𝑑𝑥
2) Integralkan terhadap x dengan mengganggap variabel x sebagai konstanta dan
substitusikan batas dari x.
2
∫0 𝑥 𝑑𝑥
𝑥2 2 22 4
= | = −0= =2
2 0 2 2

6
2. Integral lipat tiga
a. Aljabar
5 3𝑥 𝑥+2
Selesaikan persamaan ∫−2 ∫0 ∫𝑦 4 𝑑𝑧 𝑑𝑦 𝑑𝑥 dengan menggunakan prosedur

yang telah ditentukan.

Penyelesaian :
1) Integralkan terhadap z dengan mengganggap variabel x dan y sebagai
konstanta dan substitusikan dari batas z.
5 3𝑥 𝑥+2
∫−2 ∫0 ∫𝑦 4 𝑑𝑧 𝑑𝑦 𝑑𝑥
5 3𝑥
= ∫−2 ∫0 4|𝑦𝑥+2 dy dx
5 3𝑥
= ∫−2 ∫0 (4𝑥 − 4𝑦 + 8) dy dx
2) Integralkan terhadap y dengan mengganggap variabel y sebagai konstanta dan
substitusikan batas dari y.
5 3𝑥
∫−2 ∫0 (4𝑥 − 4𝑦 + 8) dy dx
5
= ∫−2 4𝑥 − 4𝑦 + 8|30 dx
5
= ∫−2(−6𝑥 2 + 24𝑥) dx
3) Integralkan terhadap x dan substitusikan batas dari x.
5
∫−2(−6𝑥 2 + 24𝑥) dx
= −6𝑥 2 + 24𝑥|5−2
= −6(25) + 24(2) – [-6(4) + 24(-2)]
= -14

7
b. Trigonometri
𝜋 1 1
Selesaikan persamaan ∫0 ∫0 ∫0 cos 𝑥 𝑑𝑧 𝑑𝑦 𝑑𝑥 dengan menggunakan prosedur
yang telah ditentukan.
Penyelesaian :
1) Integralkan terhadap z dengan mengganggap variabel x dan y sebagai
konstanta dan substitusikan dari batas z.
𝜋 1 1
∫0 ∫0 ∫0 cos 𝑥 𝑑𝑧 𝑑𝑦 𝑑𝑥
𝜋 1
= ∫0 ∫0 cos x (𝑧) |10 dy dx
𝜋 1
= ∫0 ∫0 cos 𝑥 dy dx

2) Integralkan terhadap y dengan mengganggap variabel y sebagai konstanta dan


substitusikan batas dari y.
𝜋 1
∫0 ∫0 cos 𝑥 dy dx
𝜋
= ∫0 cos 𝑥 (𝑦) |10 dx
𝜋
= ∫0 cos 𝑥 dx
3) Integralkan terhadap x dan substitusikan batas dari x.
𝜋
∫0 cos 𝑥 dx
= sin 𝑥 |𝜋0
= sin 𝜋 − sin 0
=0

8
c. Ekponensial
2 3x 𝑒 2𝑥
Selesaikan persamaan ∫1 ∫𝑥 ∫0 𝑒 𝑦 𝑑𝑧𝑑𝑦𝑑𝑥 dengan menggunakan prosedur yang
telah ditentukan.
Penyelesaian:
1) Integralkan terhadap z dengan mengganggap variabel x dan y sebagai konstanta
dan substitusikan dari batas z.
2 3x 𝑒 2𝑥
∫1 ∫𝑥 ∫0 𝑒 𝑦 𝑑𝑧𝑑𝑦𝑑𝑥
2 3x 2𝑥
= ∫1 ∫𝑥 𝑒 𝑦 . 𝑧 |𝑒0 𝑑𝑦𝑑𝑥
2 3x
= ∫1 ∫𝑥 (𝑒 2𝑥 . 𝑒 𝑦 )𝑑𝑦𝑑𝑥
2) Integralkan terhadap y dengan mengganggap variabel y sebagai konstanta dan
substitusikan batas dari y.
2 3x
∫1 ∫𝑥 (𝑒 2𝑥 . 𝑒 𝑦 )𝑑𝑦𝑑𝑥

= ∫1 𝑒 2𝑥 . 𝑒 𝑦 |3𝑥
𝑥 𝑑𝑥
2
= ∫1 𝑒 2𝑥 . 𝑒 3𝑥 − 𝑒 2𝑥 . 𝑒 𝑥 𝑑𝑥
2
= ∫1 𝑒 5𝑥 − 𝑒 3𝑥 𝑑𝑥

3) Integralkan terhadap x dan substitusikan batas dari x.


2
∫1 𝑒 5𝑥 − 𝑒 3𝑥 𝑑𝑥
1 1
= 𝑒 5𝑥 − 3 𝑒 3𝑥 |12
5
1 1 1 1
= (5 𝑒 5(2) − 3 𝑒 3(2) ) − (5 𝑒 5(1) − 3 𝑒 3(1) )
1 1 1 1
= 5 𝑒 10 − 3 𝑒 6 − 5 𝑒 5 + 3 𝑒 3
1 1
= 5 (𝑒 10 − 𝑒 5 ) − 3 (𝑒 6 − 𝑒 3 )

9
BAB III

PENUTUP

3.1 Kesimpulan

Integral lipat dua dan tiga merupakan integral yang memiliki rangkap lebih dari satu yang
dapat diselesaikan dengan tiga metode utama yaitu Koordinat kartesian, Teorema Fubini dan
Koordinat kutub dengan menerapkan sifat Aljabar, Trigonometri dan Eksponensial pada
setiap permasalahannya.

3.2 Saran

Kami sebagai penyusun menyadari bahwa dalam menyusun makalah ini termasuk jauh
dari sempurna. Oleh karena itu, kami sangat mengharap saran atau kritik yang membangun
dari para pembaca. Semoga makalah ini dapat memberi manfaat kepada kami dan para
pembaca.

10
DAFTAR PUSTAKA

Anon 752607862. (2013). Integral rangkap dua. Scribd.

Dewi, Ratna. Matematika Teknik untuk Perguruan tinggi. Bandung: Rekayasa Sains. 2013

Eva Nirwana. (2016). Bab 5 Integral lipat dan pengunaannya. Scribd.

Ghea. (2015). Makalah Integral lipat tiga. Scribd.

Rusmono. (2019).Rencana Pembelajaran Semester (RPS) Matematika II.Prodi Pendidikan


Teknik Elektronika Fakultas Teknik Universitas Negeri Jakarta.

Wikipedia Indonesia. (2019). Integral Lipat.

11
LAMPIRAN

1. Algoritma Program dan Flowchart


a. Algoritma
1) Membuka program
2) Klik "Mulai" untuk memulai program
3) Menampilkan panel awal program kelompok 3 tentang integral lipat 2 dan integral
lipat 3
4) Klik "Integral lipat 2" untuk menghitung Integral lipat 2
5) Menampilkan menu untuk Integral lipat 2
6) Pilih " aljabar trigonometri dan eksponensial" untuk menghitung Integral lipat 2
aljabar trigonometri dan eksponensial
7) Menampilkan panel penghitungan untuk integral lipat 2 aljabar trigonometri dan
eksponensial
8) Masukan angka untuk menghitung lalu klik " hitung " untuk proses penghitungan
angka yang telah di masukan
9) Klik " hapus " untuk menghapus angka yang telah di masukan
10) Klik " kembali " maka akan kembali ke panel menu integral lipat 2
11) Klik " kembali " maka akan kembali ke panel menu utama
12) Klik "Integral lipat 3" untuk menghitung Integral lipat 3
13) Menampilkan menu untuk Integral lipat 3
14) Pilih " aljabar trigonometri dan eksponensial" untuk menghitung Integral lipat 3
aljabar trigonometri dan eksponensial
15) Menampilkan panel penghitungan untuk integral lipat 3 aljabar trigonometri dan
eksponensial
16) Masukan angka untuk menghitung lalu klik " hitung " untuk proses penghitungan
angka yang telah di masukan
17) Klik " hapus " untuk menghapus angka yang telah di masukan
18) Klik " kembali " maka akan kembali ke panel menu integral lipat 3

12
19) Klik " kembali " maka akan kembali ke panel menu utama
20) Klik " kembali " maka akan kembali ke panel awal program kelompok 3 tentang
integral lipat 2 dan integral lipat 3
21) Klik " keluar " untuk keluar dari program
22) Klik ” ya “ untuk menyetujui
23) Klik “ tidak “ untuk kembali lagi ke menu

13
b. Flowchart

14
2. List Program
a. Form opening1

function varargout = opening1(varargin)


% OPENING1 MATLAB code for opening1.fig
% OPENING1, by itself, creates a new OPENING1 or raises
the existing
% singleton*.
%
% H = OPENING1 returns the handle to a new OPENING1 or
the handle to
% the existing singleton*.
%
% OPENING1('CALLBACK',hObject,eventData,handles,...)
calls the local
% function named CALLBACK in OPENING1.M with the given
input arguments.
%
% OPENING1('Property','Value',...) creates a new
OPENING1 or raises the
% existing singleton*. Starting from the left,
property value pairs are
% applied to the GUI before opening1_OpeningFcn gets
called. An
% unrecognized property name or invalid value makes
property application
% stop. All inputs are passed to opening1_OpeningFcn
via varargin.
%
% *See GUI Options on GUIDE's Tools menu. Choose "GUI
allows only one
% instance to run (singleton)".
%

15
% See also: GUIDE, GUIDATA, GUIHANDLES

% Edit the above text to modify the response to help


opening1

% Last Modified by GUIDE v2.5 29-May-2019 11:56:49

% Begin initialization code - DO NOT EDIT


gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @opening1_OpeningFcn,
...
'gui_OutputFcn', @opening1_OutputFcn,
...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State,
varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT

% --- Executes just before opening1 is made visible.


function opening1_OpeningFcn(hObject, eventdata, handles,
varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see
GUIDATA)
% varargin command line arguments to opening1 (see
VARARGIN)

% Choose default command line output for opening1


handles.output = hObject;

% Update handles structure


guidata(hObject, handles);

16
axes(handles.axes2);
image(imread('Logo-unj.png'));
grid off
axis off
% UIWAIT makes opening1 wait for user response (see
UIRESUME)
% uiwait(handles.figure1);

% --- Outputs from this function are returned to the command


line.
function varargout = opening1_OutputFcn(hObject, eventdata,
handles)
% varargout cell array for returning output args (see
VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see
GUIDATA)

% Get default command line output from handles structure


varargout{1} = handles.output;

% --- Executes on button press in pushbutton1.


function pushbutton1_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see
GUIDATA)
close
lipat2dan3

% --- Executes on button press in pushbutton2.


function pushbutton2_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton2 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see
GUIDATA)
close

17
b. Form lipat2dan3

function varargout = lipat2dan3(varargin)


% LIPAT2DAN3 MATLAB code for lipat2dan3.fig
% LIPAT2DAN3, by itself, creates a new LIPAT2DAN3 or raises
the existing
% singleton*.
%
% H = LIPAT2DAN3 returns the handle to a new LIPAT2DAN3 or
the handle to
% the existing singleton*.
%
% LIPAT2DAN3('CALLBACK',hObject,eventData,handles,...)
calls the local
% function named CALLBACK in LIPAT2DAN3.M with the given
input arguments.
%
% LIPAT2DAN3('Property','Value',...) creates a new
LIPAT2DAN3 or raises the
% existing singleton*. Starting from the left, property
value pairs are
% applied to the GUI before lipat2dan3_OpeningFcn gets
called. An
% unrecognized property name or invalid value makes
property application
% stop. All inputs are passed to lipat2dan3_OpeningFcn via
varargin.
%
% *See GUI Options on GUIDE's Tools menu. Choose "GUI
allows only one
% instance to run (singleton)".
%

18
% See also: GUIDE, GUIDATA, GUIHANDLES
% Edit the above text to modify the response to help lipat2dan3
% Last Modified by GUIDE v2.5 29-May-2019 11:13:30

% Begin initialization code - DO NOT EDIT


gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @lipat2dan3_OpeningFcn, ...
'gui_OutputFcn', @lipat2dan3_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State,
varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT

% --- Executes just before lipat2dan3 is made visible.


function lipat2dan3_OpeningFcn(hObject, eventdata, handles,
varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to lipat2dan3 (see VARARGIN)

% Choose default command line output for lipat2dan3


handles.output = hObject;

% Update handles structure


guidata(hObject, handles);
hback = axes('units','normalized','position',[0 0 1 1]);
uistack(hback,'bottom'); % menciptakan axes untuk tempat
menampilkan gambar
% menampilkan background
[back map]=imread('background1.jpeg');
image(back)
colormap(map)

19
background=imread('background1.jpeg');

% UIWAIT makes lipat2dan3 wait for user response (see UIRESUME)


% uiwait(handles.figure1);

% --- Outputs from this function are returned to the command


line.
function varargout = lipat2dan3_OutputFcn(hObject, eventdata,
handles)
% varargout cell array for returning output args (see
VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure


varargout{1} = handles.output;

% --- Executes on button press in pushbutton1.


function pushbutton1_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)
close
lipat2

% --- Executes on button press in pushbutton2.


function pushbutton2_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton2 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)
close
lipat3

% --- Executes on button press in pushbutton3.


function pushbutton3_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton3 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)
close
Pembuka1

20
c. Form lipat2

function varargout = lipat2(varargin)


% LIPAT2 MATLAB code for lipat2.fig
% LIPAT2, by itself, creates a new LIPAT2 or raises the
existing
% singleton*.
%
% H = LIPAT2 returns the handle to a new LIPAT2 or the
handle to
% the existing singleton*.
%
% LIPAT2('CALLBACK',hObject,eventData,handles,...) calls
the local
% function named CALLBACK in LIPAT2.M with the given input
arguments.
%
% LIPAT2('Property','Value',...) creates a new LIPAT2 or
raises the
% existing singleton*. Starting from the left, property
value pairs are
% applied to the GUI before lipat2_OpeningFcn gets called.
An
% unrecognized property name or invalid value makes
property application
% stop. All inputs are passed to lipat2_OpeningFcn via
varargin.
%
% *See GUI Options on GUIDE's Tools menu. Choose "GUI
allows only one
% instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES

21
% Edit the above text to modify the response to help lipat2

% Last Modified by GUIDE v2.5 29-May-2019 12:00:54

% Begin initialization code - DO NOT EDIT


gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @lipat2_OpeningFcn, ...
'gui_OutputFcn', @lipat2_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State,
varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT

% --- Executes just before lipat2 is made visible.


function lipat2_OpeningFcn(hObject, eventdata, handles,
varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to lipat2 (see VARARGIN)

% Choose default command line output for lipat2


handles.output = hObject;

% Update handles structure


guidata(hObject, handles);

% UIWAIT makes lipat2 wait for user response (see UIRESUME)


% uiwait(handles.figure1);

% --- Outputs from this function are returned to the command


line.

22
function varargout = lipat2_OutputFcn(hObject, eventdata,
handles)
% varargout cell array for returning output args (see
VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure


varargout{1} = handles.output;

% --- Executes on button press in pushbutton1.


function pushbutton1_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)
close
aljabar2

% --- Executes on button press in pushbutton2.


function pushbutton2_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton2 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)
close
luas2

% --- Executes on button press in pushbutton4.


function pushbutton4_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton4 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)
close
lipat2dan3

23
d. Form aljabar2

function varargout = aljabar2(varargin)


% ALJABAR2 MATLAB code for aljabar2.fig
% ALJABAR2, by itself, creates a new ALJABAR2 or raises the
existing
% singleton*.
%
% H = ALJABAR2 returns the handle to a new ALJABAR2 or the
handle to
% the existing singleton*.
%
% ALJABAR2('CALLBACK',hObject,eventData,handles,...) calls
the local
% function named CALLBACK in ALJABAR2.M with the given
input arguments.
%
% ALJABAR2('Property','Value',...) creates a new ALJABAR2
or raises the
% existing singleton*. Starting from the left, property
value pairs are
% applied to the GUI before aljabar2_OpeningFcn gets
called. An
% unrecognized property name or invalid value makes
property application
% stop. All inputs are passed to aljabar2_OpeningFcn via
varargin.
%
% *See GUI Options on GUIDE's Tools menu. Choose "GUI
allows only one
% instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES

24
% Edit the above text to modify the response to help aljabar2

% Last Modified by GUIDE v2.5 21-Jun-2019 14:09:02

% Begin initialization code - DO NOT EDIT


gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @aljabar2_OpeningFcn, ...
'gui_OutputFcn', @aljabar2_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State,
varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT

% --- Executes just before aljabar2 is made visible.


function aljabar2_OpeningFcn(hObject, eventdata, handles,
varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to aljabar2 (see VARARGIN)

% Choose default command line output for aljabar2


handles.output = hObject;

% Update handles structure


guidata(hObject, handles);
axes(handles.axes1);
image(imread('integral2.png'));
grid off
axis off
axes(handles.axes2);
image(imread('integral2.png'));
grid off

25
axis off
axes(handles.axes3);
image(imread('integral2.png'));
grid off
axis off
axes(handles.axes4);
image(imread('integral2.png'));
grid off
axis off
% UIWAIT makes aljabar2 wait for user response (see UIRESUME)
% uiwait(handles.figure1);

% --- Outputs from this function are returned to the command


line.
function varargout = aljabar2_OutputFcn(hObject, eventdata,
handles)
% varargout cell array for returning output args (see
VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure


varargout{1} = handles.output;

% --- Executes on button press in pushbutton1.


function pushbutton1_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)
masuk = guidata(gcbo);
syms x y
a = get(masuk.input,'string');
b = get(masuk.batasa,'string');
c = get(masuk.batasb,'string');
d = get(masuk.batasa2,'string');
e = get(masuk.batasb2,'string');
f = int (int(a,y,b,c),d,e)
set(masuk.hasil,'string',char(f))

% --- Executes on button press in pushbutton2.


function pushbutton2_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton2 (see GCBO)

26
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)
set(handles.input,'string','')
set(handles.batasa,'string','')
set(handles.batasb,'string','')
set(handles.batasa2,'string','')
set(handles.batasb2,'string','')
set(handles.hasil,'string','')

% --- Executes on button press in pushbutton3.


function pushbutton3_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton3 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)
close
lipat2

function input_Callback(hObject, eventdata, handles)


% hObject handle to input (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of input as text


% str2double(get(hObject,'String')) returns contents of
input as a double

% --- Executes during object creation, after setting all


properties.
function input_CreateFcn(hObject, eventdata, handles)
% hObject handle to input (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles empty - handles not created until after all
CreateFcns called
% Hint: edit controls usually have a white background on
Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

27
function batasb_Callback(hObject, eventdata, handles)
% hObject handle to batasb (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of batasb as


text
% str2double(get(hObject,'String')) returns contents of
batasb as a double

% --- Executes during object creation, after setting all


properties.
function batasb_CreateFcn(hObject, eventdata, handles)
% hObject handle to batasb (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles empty - handles not created until after all
CreateFcns called

% Hint: edit controls usually have a white background on


Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function batasa_Callback(hObject, eventdata, handles)


% hObject handle to batasa (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of batasa as


text
% str2double(get(hObject,'String')) returns contents of
batasa as a double

% --- Executes during object creation, after setting all


properties.
function batasa_CreateFcn(hObject, eventdata, handles)
% hObject handle to batasa (see GCBO)

28
% eventdata reserved - to be defined in a future version of
MATLAB
% handles empty - handles not created until after all
CreateFcns called

% Hint: edit controls usually have a white background on


Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function batasb2_Callback(hObject, eventdata, handles)


% hObject handle to batasb2 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of batasb2 as


text
% str2double(get(hObject,'String')) returns contents of
batasb2 as a double

% --- Executes during object creation, after setting all


properties.
function batasb2_CreateFcn(hObject, eventdata, handles)
% hObject handle to batasb2 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles empty - handles not created until after all
CreateFcns called

% Hint: edit controls usually have a white background on


Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function batasa2_Callback(hObject, eventdata, handles)

29
% hObject handle to batasa2 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of batasa2 as


text
% str2double(get(hObject,'String')) returns contents of
batasa2 as a double

% --- Executes during object creation, after setting all


properties.
function batasa2_CreateFcn(hObject, eventdata, handles)
% hObject handle to batasa2 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles empty - handles not created until after all
CreateFcns called

% Hint: edit controls usually have a white background on


Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function hasil_Callback(hObject, eventdata, handles)


% hObject handle to hasil (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of hasil as text


% str2double(get(hObject,'String')) returns contents of
hasil as a double

% --- Executes during object creation, after setting all


properties.
function hasil_CreateFcn(hObject, eventdata, handles)
% hObject handle to hasil (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB

30
% handles empty - handles not created until after all
CreateFcns called

% Hint: edit controls usually have a white background on


Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function input2_Callback(hObject, eventdata, handles)


% hObject handle to input2 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of input2 as


text
% str2double(get(hObject,'String')) returns contents of
input2 as a double

% --- Executes during object creation, after setting all


properties.
function input2_CreateFcn(hObject, eventdata, handles)
% hObject handle to input2 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles empty - handles not created until after all
CreateFcns called

% Hint: edit controls usually have a white background on


Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function batas2b_Callback(hObject, eventdata, handles)


% hObject handle to batas2b (see GCBO)

31
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of batas2b as


text
% str2double(get(hObject,'String')) returns contents of
batas2b as a double

% --- Executes during object creation, after setting all


properties.
function batas2b_CreateFcn(hObject, eventdata, handles)
% hObject handle to batas2b (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles empty - handles not created until after all
CreateFcns called

% Hint: edit controls usually have a white background on


Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function batas2a_Callback(hObject, eventdata, handles)


% hObject handle to batas2a (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of batas2a as


text
% str2double(get(hObject,'String')) returns contents of
batas2a as a double

% --- Executes during object creation, after setting all


properties.
function batas2a_CreateFcn(hObject, eventdata, handles)
% hObject handle to batas2a (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB

32
% handles empty - handles not created until after all
CreateFcns called

% Hint: edit controls usually have a white background on


Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function batas2b2_Callback(hObject, eventdata, handles)


% hObject handle to batas2b2 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of batas2b2 as


text
% str2double(get(hObject,'String')) returns contents of
batas2b2 as a double

% --- Executes during object creation, after setting all


properties.
function batas2b2_CreateFcn(hObject, eventdata, handles)
% hObject handle to batas2b2 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles empty - handles not created until after all
CreateFcns called

% Hint: edit controls usually have a white background on


Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function batas2a2_Callback(hObject, eventdata, handles)


% hObject handle to batas2a2 (see GCBO)

33
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of batas2a2 as


text
% str2double(get(hObject,'String')) returns contents of
batas2a2 as a double

% --- Executes during object creation, after setting all


properties.
function batas2a2_CreateFcn(hObject, eventdata, handles)
% hObject handle to batas2a2 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles empty - handles not created until after all
CreateFcns called

% Hint: edit controls usually have a white background on


Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function hasil2_Callback(hObject, eventdata, handles)


% hObject handle to hasil2 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of hasil2 as


text
% str2double(get(hObject,'String')) returns contents of
hasil2 as a double

% --- Executes during object creation, after setting all


properties.
function hasil2_CreateFcn(hObject, eventdata, handles)
% hObject handle to hasil2 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB

34
% handles empty - handles not created until after all
CreateFcns called

% Hint: edit controls usually have a white background on


Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

% --- Executes on button press in pushbutton4.


function pushbutton4_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton4 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)
masuk = guidata(gcbo);
syms x y
g = get(masuk.input2,'string');
h = get(masuk.batas2a,'string');
i = get(masuk.batas2b,'string');
j = get(masuk.batas2a2,'string');
k = get(masuk.batas2b2,'string');
l = int (int(g,x,h,i),j,k)
set(masuk.hasil2,'string',char(l))

% --- Executes on button press in pushbutton5.


function pushbutton5_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton5 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)
set(handles.input2,'string','')
set(handles.batas2a,'string','')
set(handles.batas2b,'string','')
set(handles.batas2a2,'string','')
set(handles.batas2b2,'string','')
set(handles.hasil2,'string','')

% --- Executes on mouse press over axes background.


function axes1_ButtonDownFcn(hObject, eventdata, handles)
% hObject handle to axes1 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB

35
% handles structure with handles and user data (see GUIDATA)

% --- Executes on mouse press over axes background.


function axes2_ButtonDownFcn(hObject, eventdata, handles)
% hObject handle to axes2 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)

% --- Executes on mouse press over axes background.


function axes3_ButtonDownFcn(hObject, eventdata, handles)
% hObject handle to axes3 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)

% --- Executes on mouse press over axes background.


function axes4_ButtonDownFcn(hObject, eventdata, handles)
% hObject handle to axes4 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)

36
e. lipat2

function varargout = lipat2(varargin)


% LIPAT2 MATLAB code for lipat2.fig
% LIPAT2, by itself, creates a new LIPAT2 or raises the
existing
% singleton*.
%
% H = LIPAT2 returns the handle to a new LIPAT2 or the
handle to
% the existing singleton*.
%
% LIPAT2('CALLBACK',hObject,eventData,handles,...) calls
the local
% function named CALLBACK in LIPAT2.M with the given input
arguments.
%
% LIPAT2('Property','Value',...) creates a new LIPAT2 or
raises the
% existing singleton*. Starting from the left, property
value pairs are
% applied to the GUI before lipat2_OpeningFcn gets called.
An
% unrecognized property name or invalid value makes
property application
% stop. All inputs are passed to lipat2_OpeningFcn via
varargin.
%
% *See GUI Options on GUIDE's Tools menu. Choose "GUI
allows only one
% instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES

37
% Edit the above text to modify the response to help lipat2

% Last Modified by GUIDE v2.5 29-May-2019 12:00:54

% Begin initialization code - DO NOT EDIT


gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @lipat2_OpeningFcn, ...
'gui_OutputFcn', @lipat2_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State,
varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT

% --- Executes just before lipat2 is made visible.


function lipat2_OpeningFcn(hObject, eventdata, handles,
varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to lipat2 (see VARARGIN)

% Choose default command line output for lipat2


handles.output = hObject;

% Update handles structure


guidata(hObject, handles);

% UIWAIT makes lipat2 wait for user response (see UIRESUME)


% uiwait(handles.figure1);

% --- Outputs from this function are returned to the command


line.

38
function varargout = lipat2_OutputFcn(hObject, eventdata,
handles)
% varargout cell array for returning output args (see
VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure


varargout{1} = handles.output;

% --- Executes on button press in pushbutton1.


function pushbutton1_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)
close
aljabar2

% --- Executes on button press in pushbutton2.


function pushbutton2_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton2 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)
close
luas2

% --- Executes on button press in pushbutton4.


function pushbutton4_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton4 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)
close
lipat2dan3

39
f. Form lipat3

function varargout = lipat3(varargin)


% LIPAT3 MATLAB code for lipat3.fig
% LIPAT3, by itself, creates a new LIPAT3 or raises the
existing
% singleton*.
%
% H = LIPAT3 returns the handle to a new LIPAT3 or the
handle to
% the existing singleton*.
%
% LIPAT3('CALLBACK',hObject,eventData,handles,...) calls
the local
% function named CALLBACK in LIPAT3.M with the given input
arguments.
%
% LIPAT3('Property','Value',...) creates a new LIPAT3 or
raises the
% existing singleton*. Starting from the left, property
value pairs are
% applied to the GUI before lipat3_OpeningFcn gets called.
An
% unrecognized property name or invalid value makes
property application
% stop. All inputs are passed to lipat3_OpeningFcn via
varargin.
%
% *See GUI Options on GUIDE's Tools menu. Choose "GUI
allows only one
% instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES

40
% Edit the above text to modify the response to help lipat3

% Last Modified by GUIDE v2.5 29-May-2019 12:01:03

% Begin initialization code - DO NOT EDIT


gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @lipat3_OpeningFcn, ...
'gui_OutputFcn', @lipat3_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State,
varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT

% --- Executes just before lipat3 is made visible.


function lipat3_OpeningFcn(hObject, eventdata, handles,
varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to lipat3 (see VARARGIN)

% Choose default command line output for lipat3


handles.output = hObject;

% Update handles structure


guidata(hObject, handles);

% UIWAIT makes lipat3 wait for user response (see UIRESUME)


% uiwait(handles.figure1);

% --- Outputs from this function are returned to the command


line.

41
function varargout = lipat3_OutputFcn(hObject, eventdata,
handles)
% varargout cell array for returning output args (see
VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure


varargout{1} = handles.output;

% --- Executes on button press in pushbutton1.


function pushbutton1_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)
close
aljabar3

% --- Executes on button press in pushbutton2.


function pushbutton2_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton2 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)
close
volume3

% --- Executes on button press in pushbutton4.


function pushbutton4_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton4 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)
close
lipat2dan3

42
g. Form aljabar3

function varargout = aljabar3(varargin)


% ALJABAR3 MATLAB code for aljabar3.fig
% ALJABAR3, by itself, creates a new ALJABAR3 or raises the
existing
% singleton*.
%
% H = ALJABAR3 returns the handle to a new ALJABAR3 or the
handle to
% the existing singleton*.
%
% ALJABAR3('CALLBACK',hObject,eventData,handles,...) calls
the local
% function named CALLBACK in ALJABAR3.M with the given
input arguments.
%
% ALJABAR3('Property','Value',...) creates a new ALJABAR3
or raises the
% existing singleton*. Starting from the left, property
value pairs are
% applied to the GUI before aljabar3_OpeningFcn gets
called. An
% unrecognized property name or invalid value makes
property application
% stop. All inputs are passed to aljabar3_OpeningFcn via
varargin.
%
% *See GUI Options on GUIDE's Tools menu. Choose "GUI
allows only one
% instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES

43
% Edit the above text to modify the response to help aljabar3

% Last Modified by GUIDE v2.5 29-May-2019 15:10:50

% Begin initialization code - DO NOT EDIT


gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @aljabar3_OpeningFcn, ...
'gui_OutputFcn', @aljabar3_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State,
varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT

% --- Executes just before aljabar3 is made visible.


function aljabar3_OpeningFcn(hObject, eventdata, handles,
varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to aljabar3 (see VARARGIN)

% Choose default command line output for aljabar3


handles.output = hObject;

% Update handles structure


guidata(hObject, handles);
axes(handles.axes1);
image(imread('integral2.png'));
grid off
axis off
axes(handles.axes2);
image(imread('integral2.png'));
grid off

44
axis off
axes(handles.axes3);
image(imread('integral2.png'));
grid off
axis off

% UIWAIT makes aljabar3 wait for user response (see UIRESUME)


% uiwait(handles.figure1);

% --- Outputs from this function are returned to the command


line.
function varargout = aljabar3_OutputFcn(hObject, eventdata,
handles)
% varargout cell array for returning output args (see
VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure


varargout{1} = handles.output;

% --- Executes on button press in pushbutton1.


function pushbutton1_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)
masuk = guidata(gcbo);
syms x y z
a = get(masuk.input,'string')
b = get(masuk.batasa,'string')
c = get(masuk.batasb,'string')
d = int (a,z,b,c)
e = get(masuk.batasa2,'string')
f = get(masuk.batasb2,'string')
g = int (d,y,e,f)
h = get(masuk.batasa3,'string')
i = get(masuk.batasb3,'string')
j = int (g,h,i)
set(masuk.hasil,'string',char(j))
% --- Executes on button press in pushbutton2.
function pushbutton2_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton2 (see GCBO)

45
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)
set(handles.input,'string','')
set(handles.batasa,'string','')
set(handles.batasb,'string','')
set(handles.batasa2,'string','')
set(handles.batasb2,'string','')
set(handles.batasa3,'string','')
set(handles.batasb3,'string','')
set(handles.hasil,'string','')

% --- Executes on button press in pushbutton3.


function pushbutton3_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton3 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)
close
lipat3

function input_Callback(hObject, eventdata, handles)


% hObject handle to input (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of input as text


% str2double(get(hObject,'String')) returns contents of
input as a double

% --- Executes during object creation, after setting all


properties.
function input_CreateFcn(hObject, eventdata, handles)
% hObject handle to input (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles empty - handles not created until after all
CreateFcns called

% Hint: edit controls usually have a white background on


Windows.
% See ISPC and COMPUTER.

46
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function batasb2_Callback(hObject, eventdata, handles)


% hObject handle to batasb2 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of batasb2 as


text
% str2double(get(hObject,'String')) returns contents of
batasb2 as a double

% --- Executes during object creation, after setting all


properties.
function batasb2_CreateFcn(hObject, eventdata, handles)
% hObject handle to batasb2 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles empty - handles not created until after all
CreateFcns called

% Hint: edit controls usually have a white background on


Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function batasa2_Callback(hObject, eventdata, handles)


% hObject handle to batasa2 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of batasa2 as


text

47
% str2double(get(hObject,'String')) returns contents of
batasa2 as a double

% --- Executes during object creation, after setting all


properties.
function batasa2_CreateFcn(hObject, eventdata, handles)
% hObject handle to batasa2 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles empty - handles not created until after all
CreateFcns called

% Hint: edit controls usually have a white background on


Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function batasb3_Callback(hObject, eventdata, handles)


% hObject handle to batasb3 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of batasb3 as


text
% str2double(get(hObject,'String')) returns contents of
batasb3 as a double

% --- Executes during object creation, after setting all


properties.
function batasb3_CreateFcn(hObject, eventdata, handles)
% hObject handle to batasb3 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles empty - handles not created until after all
CreateFcns called

% Hint: edit controls usually have a white background on


Windows.
% See ISPC and COMPUTER.

48
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function batasa3_Callback(hObject, eventdata, handles)


% hObject handle to batasa3 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of batasa3 as


text
% str2double(get(hObject,'String')) returns contents of
batasa3 as a double

% --- Executes during object creation, after setting all


properties.
function batasa3_CreateFcn(hObject, eventdata, handles)
% hObject handle to batasa3 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles empty - handles not created until after all
CreateFcns called

% Hint: edit controls usually have a white background on


Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function hasil_Callback(hObject, eventdata, handles)


% hObject handle to hasil (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of hasil as text


% str2double(get(hObject,'String')) returns contents of
hasil as a double

49
% --- Executes during object creation, after setting all
properties.
function hasil_CreateFcn(hObject, eventdata, handles)
% hObject handle to hasil (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles empty - handles not created until after all
CreateFcns called

% Hint: edit controls usually have a white background on


Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function batasb_Callback(hObject, eventdata, handles)


% hObject handle to batasb (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of batasb as


text
% str2double(get(hObject,'String')) returns contents of
batasb as a double

% --- Executes during object creation, after setting all


properties.
function batasb_CreateFcn(hObject, eventdata, handles)
% hObject handle to batasb (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles empty - handles not created until after all
CreateFcns called

% Hint: edit controls usually have a white background on


Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))

50
set(hObject,'BackgroundColor','white');
end

function batasa_Callback(hObject, eventdata, handles)


% hObject handle to batasa (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of batasa as


text
% str2double(get(hObject,'String')) returns contents of
batasa as a double

% --- Executes during object creation, after setting all


properties.
function batasa_CreateFcn(hObject, eventdata, handles)
% hObject handle to batasa (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles empty - handles not created until after all
CreateFcns called

% Hint: edit controls usually have a white background on


Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

51

Вам также может понравиться