Professional Documents
Culture Documents
Dr. Dwinanti Rika Marthanty, Leni Sagita, PhD, Dr. Jessica Sjah, Dr. M. Adhiraga P.
Ridwan Hakim, Betania C. Lidyana
EMAS: https://emas.ui.ac.id/course/view.php?id=7964#section-0
MS TEAMS: https://teams.microsoft.com/l/channel/19%3afa8926052c8d4a028730b700d9aa7ec9%40thread.tacv2/General?groupId=23aa4ee6-589f-41c3-
a751-a78910db0df4&tenantId=485d0c2a-b3bc-407c-98fb-825408258656
1
Review Calculus
Calculus adalah
• Diferensial
• Integral
Solusi Numerik
herr, dwinanti, jessica, leni SIPIL FTUI
2
Review Calculus: Diferensial
df ( x) lim f ( x + h) − f ( x)
f ′( x) ≡ =
dx h→0 h
Solusi
1.Analitik (memakai aturan calculus
A.Menurunkan melalui Definisi
B.Menurunkan memakai aturan turunan
2.Numerik
herr, dwinanti, jessica, leni SIPIL FTUI
3
2. Numerik
Taylor’s theorem states that
∆x 0 ∆x1 d1f ( x0 ) ∆x 2 d 2 f ( x0 ) ∆x 3 d 3f ( x0 ) ∆x 4 d 4 f ( x0 )
f ( x0 + ∆x) = f ( x0 ) + 1
+ 2
+ 3
+ 4
+ .....
0! 1! dx 2! dx 3! dx 4! dx
∆x 0 ∆x1 d1f ( x0 ) ∆x 2 d 2 f ( x0 ) ∆x 3 d 3f ( x0 ) ∆x 4 d 4 f ( x0 )
f ( x0 − ∆x) = f ( x0 ) − 1
+ 2
− 3
+ 4
+ .....
0! 1! dx 2! dx 3! dx 4! dx
𝑓𝑓(𝑥𝑥0 + Δ𝑥𝑥)
herr, dwinanti, jessica, leni SIPIL FTUI
𝑓𝑓(𝑥𝑥0 )
5
2. Numerik
∆x 0 ∆x1 d1f ( x0 ) ∆x 2 d 2 f ( x0 ) ∆x 3 d 3f ( x0 ) ∆x 4 d 4 f ( x0 )
f ( x0 + ∆x) = f ( x0 ) + 1
+ 2
+ 3
+ 4
+ .....
0! 1! dx 2! dx 3! dx 4! dx
df(x) lim f(x + ∆x) − f(x)
′ ≡
f (x) =
dx ∆x → 0 ∆x
herr, dwinanti, jessica, leni SIPIL FTUI
𝑥𝑥2 6 𝑥𝑥1
2. Numerik
∆x 0 ∆x1 d1f ( x0 ) ∆x 2 d 2 f ( x0 ) ∆x 3 d 3f ( x0 ) ∆x 4 d 4 f ( x0 )
f ( x0 − ∆x) = f ( x0 ) − 1
+ 2
− 3
+ 4
+ .....
0! 1! dx 2! dx 3! dx 4! dx
Backward Difference
herr, dwinanti, jessica, leni SIPIL FTUI
𝑥𝑥2 7 𝑥𝑥1
2. Numerik
∆x 0 ∆x1 d1f ( x0 ) ∆x 2 d 2 f ( x0 ) ∆x 3 d 3f ( x0 ) ∆x 4 d 4 f ( x0 )
f ( x0 − ∆x) = f ( x0 ) − 1
+ 2
− 3
+ 4
+ .....
0! 1! dx 2! dx 3! dx 4! dx
herr, dwinanti, jessica, leni SIPIL FTUI
𝑥𝑥2 𝑥𝑥 𝑥𝑥1
8
2. Numerik
∆x 0 ∆x1 d1f ( x0 ) ∆x 2 d 2 f ( x0 ) ∆x 3 d 3f ( x0 ) ∆x 4 d 4 f ( x0 )
f ( x0 − ∆x) = f ( x0 ) − 1
+ 2
− 3
+ 4
+ .....
0! 1! dx 2! dx 3! dx 4! dx
herr, dwinanti, jessica, leni SIPIL FTUI
9
herr, dwinanti, jessica, leni SIPIL FTUI
2.
Numerik
10
herr, dwinanti, jessica, leni SIPIL FTUI
2.
Numerik
Forward Difference
11
herr, dwinanti, jessica, leni SIPIL FTUI
2.
Numerik
Backward Difference
12
herr, dwinanti, jessica, leni SIPIL FTUI
2.
Numerik
Central Difference
13
herr, dwinanti, jessica, leni SIPIL FTUI
Contoh Penerapan Diferensial
14
Review Calculus: Diferensial
15
Review Calculus: Integral
Definisi
lim n
∫ f ( x)dx = ∑ f (ui ) ⋅ ∆x
∆x → 0 i =1
herr, dwinanti, jessica, leni SIPIL FTUI
16
herr, dwinanti, jessica, leni SIPIL FTUI
17
herr, dwinanti, jessica, leni SIPIL FTUI
18
herr, dwinanti, jessica, leni SIPIL FTUI
19
Review Calculus: Integral
𝑓𝑓 𝑥𝑥1
20
herr, dwinanti, jessica, leni SIPIL FTUI
21
Review Calculus: Integral lim n
∫ f ( x)dx = ∑ f (ui ) ⋅ ∆x
∆x → 0 i =1
herr, dwinanti, jessica, leni SIPIL FTUI
22
herr, dwinanti, jessica, leni SIPIL FTUI
23
Review Calculus: Integral
• Di dalam video akan dijelaskan penyelesaian dengan: composite trapezoidal rule dengan n= 4
herr, dwinanti, jessica, leni SIPIL FTUI
• Silahkan mahasiswa melanjutkan menyelesaikan soal ini dengan metode analitik dan metode lainnya serta
mencari nilai error antara solusi analitis dengan solusi numerik.
24
Pengenalan Programming untuk Komputasi Numerik
Software Mathematics
• MatLab
• Mathcad
herr, dwinanti, jessica, leni SIPIL FTUI
• Mathematica
• https://www.wolframalpha.com/
25
Programming vs Computer Language (Bahasa program computer)
26
Alur Pembuatan Program Komputer
Ide Programing
VB MSExcel,
MathCad, Matlab,
Penulisan coding Python
run
memakai editor Interpreter
Function f(a,b)
If a<b then
f=a
Else
Eksekusi oleh
f=b prosesor
End if
End function
Fortran, C++,
Compiler VB, dll
herr, dwinanti, jessica, leni SIPIL FTUI
Executable file
MSExcel, MSWord,
MSPPT, AutoCAD, run
Windows, Android APP,
Eksekusi oleh
dll 27
prosesor
Komputer language
Ide Programing
VB MSExcel,
MathCad, Matlab,
Penulisan coding Python
run
memakai editor Interpreter
Function f(a,b)
If a<b then
f=a
Else
Eksekusi oleh
f=b prosesor
End if
End function
herr, dwinanti, jessica, leni SIPIL FTUI
28
Programming vs komputer language
Ide Programing
Penulisan coding
memakai editor
Function f(a,b)
If a<b then
f=a
Else
f=b
End if
End function
Fortran, C++,
Compiler VB, dll
Masukkan A, B, C
D=b^2 – 4AC
No D=>0 Yes
?
Display
X1, X2
Selesai
30
Bahasa Compiler C++
Persiapan
Masukkan A, B, C
D=b^2 – 4AC
No D=>0 Yes
?
Display
X1, X2
Selesai
31
Running hasil Compiler C++ dalam Shell
Persiapan
Masukkan A, B, C
D=b^2 – 4AC
No D=>0 Yes
?
Display
X1, X2
Selesai
32
Bahasa Compiler Fortran
Persiapan
Masukkan A, B, C
D=b^2 – 4AC
No D=>0 Yes
?
Display
X1, X2
Selesai
33
Running hasil Compiler Fortran dalam Shell
Persiapan
Masukkan A, B, C
D=b^2 – 4AC
No D=>0 Yes
?
Display
X1, X2
Selesai
34
Bahasa VB Windows
Selalu dimulai dengan FORM
Dibuat perintah ke computer untuk reaksi untuk tiap event tertentu
herr, dwinanti, jessica, leni SIPIL FTUI
35
Bahasa VB Windows, Sub routine utk meng-handle event.
Persiapan
Masukkan A, B, C
D=b^2 – 4AC
No D=>0 Yes
?
Display
X1, X2
Selesai
36
Running Hasil Compiler VB Windows
Persiapan
Masukkan A, B, C
D=b^2 – 4AC
No D=>0 Yes
?
Display
X1, X2
Selesai
37
Bahasa interpreter VB MSExcel
Persiapan
Masukkan A, B, C
D=b^2 – 4AC
No D=>0 Yes
?
Display
X1, X2
Selesai
38
Bahasa interpreter Matlab
Persiapan
Masukkan A, B, C
D=b^2 – 4AC
No D=>0 Yes
?
Display
X1, X2
Selesai
39
Bahasa interpreter MathCAD
Persiapan
Masukkan A, B, C
D=b^2 – 4AC
No D=>0 Yes
?
Display
X1, X2
Selesai
40
Bahasa interpreter Python (memakai Editor Jupyter)
Persiapan
Masukkan A, B, C
D=b^2 – 4AC
No D=>0 Yes
?
Display
X1, X2
Selesai
41
Karakteristik menurut kepentingan Engineering