Re: re:mathematica help
- To: mathgroup at smc.vnet.net
- Subject: [mg42889] Re: [mg42875] re:mathematica help
- From: Selwyn Hollis <selwynh at earthlink.net>
- Date: Fri, 1 Aug 2003 01:25:58 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
1. Learn how the algorithm works. 2. Learn something about Mathematica. 3. Combine 1 and 2. ----- Selwyn Hollis http://www.math.armstrong.edu/faculty/hollis On Thursday, July 31, 2003, at 01:47 AM, ikhlaq chohan wrote: > i need the help in programming of mathematica > the ascii text is given here: > "solve the heat equationusing explicit difference approximation with > the help of programming in mathematica" > is a function of space cordinate "x" and time cordinate "t", ie > u= u(x,t) > > with the given boundary conditions > u(0, t) =u(1, t)= 0 for "t" lies in the closed interval from 0 to 1 > and the initial condition u(x,0)=x, when"x"lies in the closed interval > from 0 to 0.5 > u(x,0)=1-x when "x"lies in the closed interval from 0.5 to 1 > The explicit difference scheme is given as > > [u(x,t+delta t)-u(x,t)]/(delta t) =[u(x+delta x,t)-2u(x,t)+u(x-delta > x,t)]/(delta x )^2 > with a condition > (delta t) / (delta x )^2 should be less than and equal to 0.5 > waiting for your reply > Ikhlaq chohan > >