Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Obtaining data pts from soln and 2D plot from p...' topicStudent Support Forum > General > Archives > "Obtaining data pts from soln and 2D plot from p..."

< Previous CommentHelp | Reply To Comment | Reply To Topic
Author Comment/Response
yehuda ben-shimol
09/25/05 12:01pm

Hi,
DSolve returns its answer as a replacement rule, so you will get expression of the form
{{r[x,t]-> some mathematical expression}}

assume for the moment that what is written there is
{{r[x,t]->Sin[x]Cos[2t]}}
and you assigned it to a variable named sol
(i.e., sol=DSolve[...])
so

Plot[Evaluate[r[x, t] /. sol[[1]] /. t -> Pi/3], {x, 0, 2π}]
will let you see the 2D graph for t=Pi/3

As for your second question it is not clear to me if
1. you mean the point calculated during the solution of the pde?, if this is the case, you are probably using NDSolve rather then DSolve.
or
2. you want to generate a list of data points for a particular set of parameters?
yehuda

URL: ,

Subject (listing for 'Obtaining data pts from soln and 2D plot from p...')
Author Date Posted
Obtaining data pts from soln and 2D plot from p... Kristie 09/23/05 1:04pm
Re: Obtaining data pts from soln and 2D plot fr... yehuda ben-s... 09/25/05 12:01pm
< Previous CommentHelp | Reply To Comment | Reply To Topic