MathGroup Archive 2010

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

Search the Archive

Re: NDSolve with Dirichlet boundary condition

  • To: mathgroup at smc.vnet.net
  • Subject: [mg107524] Re: NDSolve with Dirichlet boundary condition
  • From: Frank Breitling <fbreitling at aip.de>
  • Date: Tue, 16 Feb 2010 03:51:00 -0500 (EST)
  • References: <hkj8sp$dpg$1@smc.vnet.net> <hl5uj3$ou3$1@smc.vnet.net>

Hi JH,

The problem you are solving is different from mine for it not having
Dirichlet boundary conditions.
However Udo found the solution as follows:

In[1]:=  sol = NDSolve[{D[y[x] D[y[x], x], x] == 0, y[0] == 100, y[1]
== 10},
  y, {x, 0, 1},
  Method -> {"Shooting",
    "StartingInitialConditions" -> {y[0] == 1/1000, y'[0] == -1/100}}]

In[2]:= Plot[sol[[1, 1, 2]][x], {x, 0, 1}]

See his reply at http://www.mathematica.ch/dmug-archive/2010/msg00023.html


  • Prev by Date: Re: (-1)^(1/2.) on Mathematica!
  • Next by Date: common subexpressions
  • Previous by thread: Re: NDSolve with Dirichlet boundary condition
  • Next by thread: Simplifying Bessel functions