S08.hw01.soln - .. M _ i )5. m - .‘ ., ' 1;, 6.1:: .,

Info iconThis preview shows pages 1–12. Sign up to view the full content.

View Full Document Right Arrow Icon
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 4
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 6
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 8
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 10
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 12
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: .. M _ i )5. m - .‘ ., ' 1;, 6.1:: ., mwww;45;jgggggg4ggé;igfi&még;z%4mgg;bmmgagfigg¢_iggiég£égyam_.._ 'i."j])_;z..; n e ._ j“ I A ‘,:,.QL'.:.<-;.v_;_;§g§<£s__ WWVWW; m , _fl;§w; “m1 Hbggfii= “ ;.mflMWumwm._ “M- E*‘ -z, _ ' f " ' , ,7 ,, _ ,I 7 __ ., ‘ + m . H}: "' (LMQH H ‘ {E ,_ , Ii - g1 _ _ _ I - 1|. , I (2“ at: D "'jflj 45:11va maelwvv ,j 1/ tan=l.5; y02300; t=[0:u1:5]; yanalyticalapoolanalytical(y0,tau,t); [times,ynumerical]=p001numerical(y0,tau,t); figure; _ plot(t,yanalytical,'—',t,ynumerical,':‘); legend('analytical‘,'numerical'); xlabel('t'); ylabel(‘y(t)'); prininlagfigmfifibl“answernepa function y=p001analytical(y0,tau,tr‘\\ %function y=p001analytical(y0,tau,t} if max(size(y0))~ml error('p001analytical size of yO'); end - if maxtsize(tau))~=l error('p001analytical size of tau'lgar” end ’,,a”' I / YSYO u *‘exp (-t ~ /tau) ;/’7" function [times,y]=p001numerical(y0,tau,t) %function [times,y]bp001numerical(y0,tau,t) global globaltau; globaltau=tau; [times,y]=0de45{@pOOlRHS,t,y01i,aw”’fl’ffl’fl function RHS=pOOlRHS(time,y)_ %function RHS=p001RHS(time,y) global globaltau; RHSw—y/globaltau; f /- Pam! )pON analytical ‘ ‘ ~ - numerical P031..- ! .mmw‘.WWWWWWWW * W w“ _.,.,_ _ W ____*_____._,__ Wm __ “MW _‘ _ .5253)";meMmfiwxcm :gLXfifibgfiifgleW; m _________ _...__. ‘ _¢____._~_____-___._______q____,_______;__"iv-aiwmnazggxiaaflj_.__..,____.?______ .._m.w.,________._ ._._T‘_..__.__;__._-_f__.___f_._._.__m..._.___f..1-._.____:_.__.r:;..;;-.-.._._..~ d... mmmmm "WW-WWW“hm‘ufl—m—h w any:;;Lm,mgmz;$fi1_gw Jim;._.._dz._(flr__.._w;_._ mug-u,— .u_._._.‘.~..--.-. wan-F: ._.._..._...._..__...._——V_._‘_. “iLflfiiwmkmaygéméflflézhMflfidiyfiflifiwifiifiiciiflfififé . ' I -..A......__._,.,.1.-,.._.._,-.-_M.r-fl.-__....,_,.-._.q._,.__..;---.w:,_j§;);_.,§§;(£,:.£g;).;ftw§4?(fi££lJ;_._.__-_,.q_;.~..m--¥-; _ ._,_..._,__.___W__-___.._H;-,__w_n-_;_,-‘...,.¥.;_a_r4f.{-,.ggg¢gg-;flaw).izgtgigxmjgf_..r.fl__.-mf.w.w ___'_;_.-____.__image;EgmgzgzgegmgWW . '. ..,_7__,_T-__,_;_.____-.....___._.._..+_-__*.;_-,._;._r.__q-.ngLqflLfifil:léfiLfliflLftifgljfiLwr _.,_.__.;__:-_i[-_m_(flfiggp+m(LQQLQWMEQQ1*-....__Q_n-..n.%;_--r_-_fi.w__m_._. _*..;w.._-.fi__7__w ___.f_._.._._m...__._f_-___.;._#4:-um.igigfiggggggég:1-4:ntflflmi;mgfifilszLW _,,_._._,.,__._H_u__u__w__'__~__,rumimigggglg4:4.yififijfi4:...ignlfigflggémfiiflE},__._,. . _%L.Le_L=_J..eawgmgjflxLex;_{wvwwiELM“-..www-mmm.__,_-;_fiw mm = s} (1—. mam _ .7 I ‘7 5' 'H’}. '- . . - -- ' i! wme .._-_. gimmflt‘, m- .....-__.....u.._....:4mg“- ___......_.__..w..‘....,.- H. "W .rflww _.___‘ ‘._n.n1.-..; __. . ‘-”....____- MM... ‘ ..._.._. _ i__ 1” f .me«,.lf._‘m..._.. “MW.9‘..T,.._::,1.,._;.‘.._..:.........;‘..1_..___.....,.._.......¢..~5.‘_$.u ,7,‘..n.,.,~.,-,-....._,,,., “PM‘-.,.,,___~__m4”__.,_, y—-~---,.-——-—--—-.-—-.-—-,--~MHW‘M‘ “Hannah -......w.,......_..:..‘ i . ' .) ._\._ r. Maggi, I if -‘ “um—“$4.. . . m '.... 19.4w.“—H......._..,;.;.._.——...,17.,,w. _. 59114.49; ' - i in; :V H a a. - “firm: u. 6.- _. fl. ) —‘-_«_-—-—-.—..-._ .w-m- “LLMNN'. W. “h; .,m.._w_,..m¢... "......3...,.‘._..-fl.-..-..un:efiflfumflrw ",3-........Ag.?.7...:: 5;.._, w “ mi -r'!"we;!~m'~a "‘YHW-v—‘<--—v u- “man-mm-«Mr ‘ wak— q_ r. fin-..“ ..._,K-.~.._ n.“— m... M.“ w,.*,,,w,.u.w.,,__fi_fi ,5. “ug- I 933 n-wu-v "l3l’F":"I'-'“t'”>7;'kk"3'\'!";v—":J"“'DJWJ-mn-ll-u>.v>mu \i-INWV‘ . .m,.un.a.w: w. ,h rh.“.wu_..==......m WM“...«‘.,;,-....‘....w.m ‘ m». anm - “mm.” ... . 7‘ I V" film {at} “a...” up...” ¥WW....V_.,._,_ .._ .M. w. .. “WWW”“mt”..;m._.-_. .....=..., ' . "4,7,," mm. .a - .uu m Lil ‘ --—.. ".7"... ‘. vu.:...r.,_,.‘,.____.r_mt Wm? . ?_Q . /‘ - \/ ' : ' k L * ’43- M lid + I firs-:6 (:3 - [Imam ., FL Mu»)m.h(wlz_fi£5; , H ..—- ' rmw -‘..‘._..‘.,E;.~w..'.;., - M an... armwmllawuul'v new; WnyflF-Krnivl‘f-u-lei»avl —:-.m.‘a~.‘.u,...w..m,_‘.,...fl w“. a. .0 .. ,; ‘ - - .. . "'"."13‘r"1‘¢'~*"e'.-'vr€«:¥1 '1‘",','.‘,"f£‘.‘r’,:; :n::rr;-wrms,r-r-. ‘_ yam-W“ya-gumwwup. - . “may,” ' ‘ . , 7 .- K ‘ “Ff . _ - , . . ...
View Full Document

This note was uploaded on 03/10/2008 for the course ECE 3200 taught by Professor Fine during the Spring '06 term at Cornell University (Engineering School).

Page1 / 12

S08.hw01.soln - .. M _ i )5. m - .‘ ., ' 1;, 6.1:: .,

This preview shows document pages 1 - 12. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online