You are on page 1of 3

Nama:Leni Wulamdari

Nim:03031381722110

Kelas B

PRAKTIKUM METODE NUMERIK

PROBLEM 1

h Forward difference method Centered difference method


Numerical sol. Error,Et Numerical sol. Error ,Et
!10−1 0.9531018 0.0468982 0.0100335 0.9899665
!10−2 0.9950331 0.0049669 0.0001 0.9999
!10−3 0.9995003 0.0004997 0.000001 0.999999
!10−4 0.99995 0.00005 1 0
!10−5 0.999995 0.000005 1 0
!10−6 0.9999995 0.0000005 1 0
!10−7 1 0 1 0
!10−8 1 0 1 0
!10−9 1 -0.0000001 1.000 0
!10−10 1.0000001 -0.0000001 1.000 0
!10−11 1.0000001 -0.0000001 1.000 0
!10−12 1.0000889 -0.0000889 1.000 0
!10−13 0.9992007 0.0007993 0.9997558 0.0002442
!10−14 0.9992007 0.0007993 0.9992007 0.0007993
!10−15 1.110223 -0.110223 1.0547119 -0.0547119

PROBLEM 2

Equation Analytical −y 2 + 4y1 − 3y 0 −y2 + 4y1 − 3y 0 C(


A(! ) B(! )
solution (x=0) 2h 2h −y2 + 8y1 − 8y − 1 + y − 2
! )
12h
Numerical sol. Error,Et Numerical sol Error,Et Numerical sol Error,Et
y = x^2 + 4*x^2 0 0 0 0 0 0 0

y = x^3 + 6*x^2 0 -0.0002 0.0002 0.0001 -0.0001 0 0

y = 3*x^2 -5*x -5 -5 0 -5 0 -5 0

y = 4*x^3-8*x -8 0 0 -7.9996 -0.0004 -8 0

y = 4*x^3-8*x^2 0 -0.0008 0.0008 0.0004 -0.0004 0 0


y= 6 5.9992 0.0008 6.0004 0.0004 6 0
4*x^3-8*x^2+6*x

y = 4*x^2-8*x-1 -8 -8 0 -8 0 -8 0

y= -7 -6.998424 -0.001576 -7.0008 0.0008 -7 0


4*x^4-8*x^3+6*x^2-
7*x+1

y = 5*x^2+3*x 3 3 0 3 0 3 0

y= 6 5.9988474 0.0011526 6.0006 0.0006 5.9999998 0.0000002


4*x^5-8*x^4+6*x^3-
7*x^2+6*x-3

You might also like