MathGroup Archive 2006

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

Search the Archive

Re: NDSolve

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