06.03.2013 Views

Capitolul 1 Ecuatii diferentiale de ordinul ˆıntâi rezolvabile prin ...

Capitolul 1 Ecuatii diferentiale de ordinul ˆıntâi rezolvabile prin ...

Capitolul 1 Ecuatii diferentiale de ordinul ˆıntâi rezolvabile prin ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Calculul simbolic ¸si numeric pentru ecuat¸ii parabolice 253<br />

Exemplul 3:<br />

⎧<br />

⎪⎨<br />

⎪⎩<br />

∂u<br />

∂t (x, t) = ∂2u ∂x2(x, t) + t · cosx<br />

u(0, t) = t, u(π, t) = 0<br />

u(x, 0) = cos 2x + cos 3x<br />

Heat equation<br />

> PDE3 :=<br />

diff(u(x,t),t)=diff(u(x,t),x,x)+t*cos(x);<br />

PDE3 := ∂<br />

∂t<br />

u (x, t) = ∂2<br />

∂x 2u (x, t) + t cos (x)<br />

> IBC3 := {u(0,t)=t,u(Pi,t)=0,u(x,0)=cos(2*x)+cos(3*x)};<br />

IBC3 := {u (π, t) = 0, u (0, t) = t, u (x, 0) = cos (2 x) + cos (3 x)}<br />

> pds3 := pdsolve(PDE3,IBC3,numeric);<br />

pds1 := module () local INFO; export plot, plot3d, animate,<br />

value, settings; option ‘Copyright (c) 2001 by Waterloo<br />

Maple Inc. All rights reserved.‘; end module<br />

> q1 := pds3:-plot(t=0):<br />

q2 := pds3:-plot(t=1/10):<br />

q3 := pds3:-plot(t=1/2):<br />

q4 := pds3:-plot(t=1):<br />

q5 := pds3:-plot(t=2):<br />

plots[display]({q1,pq2,q3,q4,q5},<br />

title=‘Heat profile at t=0,0.1,0.5,1,2‘);

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!