100% found this document useful (1 vote)
108 views

APM3711 Assign 01

The document contains an example of a function f(x,y) = -3x^2y and describes using Euler's method to numerically solve the differential equation y'(x) = f(x,y) with initial value y0 = 2 and step size h = 0.1.

Uploaded by

sal27adam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
108 views

APM3711 Assign 01

The document contains an example of a function f(x,y) = -3x^2y and describes using Euler's method to numerically solve the differential equation y'(x) = f(x,y) with initial value y0 = 2 and step size h = 0.1.

Uploaded by

sal27adam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

n

0r
WERKOPDRAGSKRYFBLOK . ASSIGNMEI\T WRITING PAT) Dosent se Kommentaar
ll I lr ilillt ilil ilil il ilt ]ilil ilt l|l I
Skryf - Write
I

70059845 Tutorial Comments

@tr't
U'1il ? *TcL
t} ) Y)uL,
h= )L't+t ..- Xr' k

Uno{-hg,!. [&l"6atll"*
Lrl
J /rrt
lj*u,
$ri*t r f L*nrr 13, ,".J,1 )
i

T LTq
I .ilr^,r, Y,, cd)
\T@

J
I "U* *
rElt
Lt gi, r, r 2k Lv-n,,u,,r."\, f( r* r*rfiL
"-9,,(,
Cz t W . -? u ?G Lt, 1g,f..\ t- P*(x,,'" rirr;)

{iVII:',YW tt, W ru q.\ !lt1rq* i tL


y@ UuL W cre iuL 1th rwroAr$"JytlElq
*t- AL W*"&*L e!q14t&/" t6 fu &.i"rrdL

{ Lz .&44W, LL ,

fl|*, Stq Lz i V.&o fu, HiA


,*'.-1, , Lr,w,W! h
fr,1
y'(x) = -3x^ Zyn1 x Predictor (y)
x0= 02
xL= 0. 1 =(C2+B3 Z* (-3,r, (82* 82)*(C2 *C2)))
x2= 0.2 = (E3+B3 Z* (E2ID
x3= 0.3 =(E4+832*(E 220
x4= 0.4 =(E5+B3Z*(E23))
x5= , 0.5
=(E6+B3 Z* (EZ4l)
0.6 =(E7+832*(E2s))
0.7 =(E8+ B3Z* (E 26))
0.8 =(E9+B3Z*(E270
0.9 =(E10+832*(E28))
I =(E11+833*(EZ9))

yi+1 = yi + h(f(xi, yi))

Exact Value Error


=(2/(2* (BZ* 82 * 82)+1)) =(A19- Ezl
=(2/(2* (B3 * 83 * 83)+1)) =(A20_E3)
=(2/(2* (B4* 84* B4)+1)) =(A2 1_E4)
=(21(2* (Bs * Bs * Bs)+1)) =(A22_Es)
=(2/(2* (86* 86* 86)+1)) =(A23_E6)
=(2/ (2* (87 * 87 * 87 )+ 1)) =(A24_E7)
=(2/(2* (BB* 88* 88)+1)) =(A2s_E8)
=(2/(2* (89* 89* 89)+1)) =(A26-E9)
=(2/(2* (810* 810* 810)+1)' =(A27 _E10)
*
=(2 / (2* (B 1 1 B L 1 * B 1 1 )+r)' =(A28_E11)
=(2 / (2* (BL2* B 12 * B L2)+ 1 ), =(A29-E L2)

Cz-Exact Value
h- 0.1
h/z= =832/',
6
Corrector I Corrector ll
22
=(C2+(833*(E20+(-3* (C3*C3)*(83* 83))))) =(C2+(833)*(E20+(-3*(83* 83)*(D3* D3))))
=E3+(833*(E21+(-3*(84*84)*(C4*C4)))) =(E3+833*(E21+ (-3*(84*84)*(D4*D4))))
=E4+(833* (E22+(-3* (85* 85)* (C5*C5)))) =E4+(833* (E22+(-3* (85* B5)* (D5* D5))))
=E5+(B33* (E22+(-3*(86* B6)* (c6*C6)))) x
=E5+(B33* (E23+(-3 (86x 86)* (D6* D6))))
* (E24+(-3* (87* 87)* (c7*c7)))) *
=E6+(833 =E6+(833 (E24+(-3* (87* 87)* (D7* D7))))
=E7+(833*(E25+(-3*(88* 88)* (c8*c8)))) =E7+(833*(E25+(-3* (88* B8)*(D8x D8))))
=E8+(833x E26+(-3* (89* 89)* (c9xc9))))
( =E8+( 833* (E26+(-3* ( 89* 89)* (D9* D9))))
=E9+( 833*(E27+(-3* (B10* B10)* (c10*c10)))) =E9+(833* (E27+(-3*(B10* 810)* ( D10* D10))))
=E10+(B33* (E28+(-3* ( B11* B11)* (C11*C11)))) =E10+(833x (E28+(-3*(B11* B11)x ( D11* D11))))
* *
=E11+( 833 ( E29+(-3* (B12* 812)*(c12*C12)))) = E1 L+(833* (E29+(-3 ( 812x 812)* ( D12* D12))))

yi+1 = yi + Hlz(f(xi,yi) + f(x+1, yp)) yi+1 = yi + Hl2(f(xi,yi) + f(x+1, yc))

USING H = 0.1

Function value
2

= (-3 * (82 * B 2\* (C2* C2 ))

=(-3* (83* 83)* (E3* E3))


* 84* 84) * ( E4* E4))
=(-3 (

=(-3*(85* 85)* (E5* E5))


*
=(-3 (86* 86)* (E6* E6))
* ( 87 * 87) * ( E7* E7))
=(-3
* *
= (-3 (88* 88)* (E8 E8))
* (89 * 89 *
=(-3 )* (E9 E9 ))
= (-3 * (B 10* B 10)* (E L0* E 10))

=(-3*(B1L* B1L)* (EL1* E11))

-3x^ 2ynZ
(r,r )

{\l
** d

:'it, l

'tt
', *
r ?'4
*?.
-S | ,.fr.

{L' f"tr # f". r- w q3 *l


3r"![tn"<1f;,r; Lfl I-, tft
*
f;2ffiWrnrfr,,4* rn #, ri r\l
"..
rli \n 4 r*1:
:;f- {A W t-l ffs rfrj
,C
N3
,X th g\ f?a t'
ffi \*t,\a
'**'?'f''I
,.:.3 r , i
*-,

X * *tX rn ry7 trt rfJ


I"r ffi f.. 6\ tf\ {4
, g {, ft\ q.t *i *,
l'J t1'' ffJ ffi *
ry "* 14 +fi "
{A
fq ?'4 f'* *1 *4
"*.*#1.1:t;?
r?l ?*4 r*, .fl ry4
*#**()
*r##dd I

W *4 l\* fi tn t*l f\
3"Oqtq!$\{44

..1,n
iJ) U
# ##w#'e r
y.6\.&*f,lrfi+

fr qi 'i#t
W _r?'l t# Wt
tl*
"4 rA, fi'l
,<
tfl *:v
ffr th \b
'& f. i*#.ffi
x .Ltu) ;4 *4 e d d & ft 14
"T
"n
ft4 f".t f*- $* ,v..t {ya
tfi tfr tv,l fft i"t zq
r4 * tft fft ?"
,..* * rff i-< n y
t\ l& ff; tr"
ff.2 &*
qs: tri i"i Y; -l Ft
&fr't2 il;rt
q ; "r; q ''fr, ! 'F"

?4 ,*. d' W:
",4 .4

'1,1;1.: , '#",
.-*.
,' ff.
!-l
'\.^ +nt
qX.Q
r* +. tl
#d ':
*i *.
\l a* i*
UnW
L
u'r*fi
,; Z,:

uL.5
*'4 f* ,r.t q* *X
lft fq f,.' tW
*"..t t4t
tr, W l".l i\
*; f'"
y* fi1 ',.* ifr
4 :tft
,* tl"r
$\
r'l *1 cn
rql
tr} {f} f+
;?
WWI-\?*
fr fr1 # tA *,**
4 q4. ,r4 {5, +
a
'14*
,*

fu.
w

r.1
T
t*
fJ +
.+.4 'fr.
:wL) L*
l,
4.4"
*I*

t-; b*
f-rl f\4 fi ,,t, qt gn
, s* r*r rx1 ii
,fr 6\ $1 *3
,iftryffi*,
**1 ffb tr, ib
tnt W +f\ r'^t l/ft
ft4 qt ry\
.t\ *2\
\fi ,.* fi
rtl q* ,& & ,e,
t*',"#" ; ; d d .r,.

1fu
+/
* +
'7h
u
ffi It
, tLt v4
+
,,', h .r'l qt, :%

,t, '*. ur, ,-4


f#L,,;**.w*
'1d.
.
:
.: fil
,t, 4.
7*
.: *4
I
*.r,t #,
.a

:tl
r"ftlttttttttl
:: C, tua f,.1 rrt W *"r
:>, x, ,< ',4 t, n y.
6

) :ry| ti3
:Y#"#
:-* *Y
,ll tt
f f'l
.x-

Ht-4*#'frfrrytfiWn{:Aifr
ry fr4frfrffi*?,r,fifr ?
P 'H, e
ij
t,

i'w
1:.
i
i
i
t,
.
#, frt##wfrw#ffi*
U
q#i#,ri..,l
fr
* r.q \# * r.j {; ;-;

4 dqffi.q4"ffiffi^d
N #f4*iA;
I | , r ,. |
fr,

'r,
4
i Lt.
i. . ...,

,, bstww.$.frtrw#ffn#
fr
', ' trffiffi,fiw,au'fiww fr
y

t **)*dri##'fr#e'##
WW#,
'f q444 U
q
i.ti"rr''t
;,q* u

; l'h

'fr tr frffi#; #'# rj w,&


li
,' W rv Yr- h h u? tfrt tq f! ry bn
',t#,lo
: 'fu A # fft W
Wfr,n# W#fr'#,
tt*,t&rrlf%rn#ffiW;6
f**

lB
ffi t,* *' t":
ffi axx';
' ',trl
tWSlff\Wf.*, fi;i
2,it*'fr
ffi d L.p

"
.q 14 11
?"1 ql$l$1
'q * 4 **1 \fr rft w
qffi,Eiffi&,firu \,,
tr' {* tr'
m r"4 t'."1 t
7*.
,rt
#ffiq4 %ffifrwffi'fru +
ffi'ruffi'6frfrWr;%#
#iqry,tftry4hffri.n,
#,:
,$lh,

+
r4: yl. ?i r1 ,*,t l-i *q e .LA ffi
,*
'ir4.

.*
f4

+i
*
la ^L
-t

a 7p,
&t
l*
'* ft

u*
?"4
+
.*wrd&fi#wfrnm
rr{WWff)t-
s\*Pt!WffiffiiyLfrW
b*

** ffi fi f ffi Ft t q ffi 'tt


*tw,4#WW,#, IfrH *ryr
2@4
:

wffi#&ffiu#*ffi
'tfr

;!*,
Aq.t4*.4q*r.14
*,4. 4 tnl c-l a q4 {3 ffi *
4
+
'?r.:

+
3F*

'r4
',*",

t'4
4q,-
r.{ .a

,tr*. X.*
*
iii. .+"t + l'l
j: t2 %*
!!!

, ,,i, {il - tfi


ii t*. IT \iF
ry
:':,:: ij * G;
e,4
i,* .G
": " i l,*).
"#, 3
? ,f"r

{a,t ri.* r,t} * \fr g\ *} .* 13 /fr


f! ffi
t:.? ry F:i *t r\ fi 1""*

tr,wffiffif,ww,7i# ?_;

t44
frffi{d'#frfrH,ffi'*
?!1'"#fuw,Wffi*rA 74
{# ff1 {-h fl (# €} #, tr}
:U b^ ;4
* 2*4',;'x3*Ar;u +
'l't*'
:!#
w tt
v ?'1
+,
h"
, # 4,-l ry q, 4 q l.* t/) ry) rt %
,ff1'.1 m ffi *3 ffi e d * d d
, ,,;. }{
'i
t..,
4"
' ?r*
,fr*
',4'rc"
- tr,
qe-
It
: l{
trqtttt,t,lttt
f;s4 qx ?4 fV f*, *..t tn
3< X. ,E 14, x
llllllllllllllllllllllllllllllllllll wrmomna9nwBloK-AssrcNMENrwRrrrNGpAD D.sen,seK.mmen,aar
700se845 Skryf-Write TltorialComments

lla W %!,Y try&d - tru-Xt--@@---

I
,
I
I
I

:I --.---r...--
I

it
:i
I
-t I

ii
I

I
(7'
WERKOPDRAGSKRYFBLOK -ASSIGNMENT WRITING pAD Dosent se Kommentaar
A skrYf -write Tirtorial comments

{3L
? 4ic

= 7V,,+
tRl OPDRAGSKRY SSIGNM NTW f)ose t se Kom
lltl
Skryf - Wri Tir rial Com
-
,''-"

) (t
-)
o 1",, ,'Zr
I
I
t
(
'

g
X
CI I
xj
/) \
".""*.
t'
("r

( z)[t c,I \
!

u
..1 '7
"?t)
t,
! *=,
>.
..
2l ll
:'
sP
,LI I
3
,t
a\ 5',
.-4
-/ L [5,
d
#
I t .,{-

'-€ 31

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy