Oleh:
Pramodya Reksansiwi Rumekso
NIM : 081911733046
III. Tugas
Let assume D(2h) and D(4h) are the approximate derivation of 𝑓𝑓 ′ (𝑥0 ) with the interval 2h and
4h using the formula of the order of center-order O(ℎ4). By using the Richardson extrapolation, calculate
the better estimate of 𝑓𝑓 ′ (𝑥0 ):
[𝐷(2ℎ) − 𝐷(4ℎ)]
𝑓𝑓0′ = 𝐷(2ℎ) +
15
Determine the approximate derivation of 𝑓𝑓 ′ (1.2) if the function is 𝑓𝑓(𝑥) = 𝑒 𝑥 in the interval [0.8, 1.6]
with h = 0.1.
IV. Hasil Pengamatan
Script Code
from numpy import*
from sympy import*
x=symbols('x')
y=fungsi(x)
turunan=y.diff(x)
f=lambdify(x,turunan)
p=len(Di)
if p>1:
n=2
Dj=[]
for k in range (0,p-1):
lap2=Di[k]+((Di[k]-Di[k+1])/((2**n)-1))
Dj.append(lap2)
print("Dj :",Dj)
else:
pp=0
pp=len(Dj)
if pp>1:
n=4
Dk=[]
for k in range (0,pp-1):
lap3=Dj[k]+((Dj[k]-Dj[k+1])/((2**n)-1))
Dk.append(lap3)
print("Dk :",Dk)
print("Richardson Derivative :",Dk)
er=abs(f(number)-Dk[0])
print("Error :",er)
else:
if pp!=0:
print("Richardson Derivative :",Dj)
err=abs(f(number)-Dj[0])
print("Error :",err)
else:
print("Richardson Derivative :",Di)
error=abs(f(number)-Di[0])
print("Error :",error)
Hasil
VI. Kesimpulan
Dari praktikum di atas maka dapat disimpulkan bahwa kelebihan ekstrapolasi Richardson adalah
dapat memperkecil nilai error yang ada dimana didapat hasil error pada praktikum ini sebesar
4.22833763558117e-8 dengan h yang digunakan adalah 0,1. Apabila h yang digunakan semakin kecil
maka error yang didapat akan semakin kecil juga