Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: NDSolve

  • To: mathgroup at
  • Subject: [mg66002] Re: NDSolve
  • From: "D.C.Grady at" <D.C.Grady at>
  • Date: Wed, 26 Apr 2006 04:38:16 -0400 (EDT)
  • References: <e2kq0u$77u$>
  • Sender: owner-wri-mathgroup at

When you use NDSolve to generate a solution, Mathematica will give you
a replacement rule rather than assigning the solution directly to the
variable name you're using.  You can, for example, plot your solution
by doing something like this:

sol = NDSolve[ equations, Q, {x, 0.03, 0.06}, {t, 0.001, 1}]

Plot3D[Q[x,t] /. sol, {x, 0.03, 0.06}, {t, 0.001, 1}]

The documentation for the NDSolve command has many examples.

In the code you provide, you twice write D[S, x].  Since S is itself an
expression in terms of x, should this be D[S, t]?

  • Prev by Date: LinearSolve and System Equation
  • Next by Date: Re: Object-Oriented Paradigm in Mathematica?
  • Previous by thread: Re: NDSolve
  • Next by thread: Re: NDSolve