MathGroup Archive 2005

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

Search the Archive

Boundary conditions in NDSolve

  • To: mathgroup at
  • Subject: [mg56773] Boundary conditions in NDSolve
  • From: YZ <z at ***>
  • Date: Thu, 5 May 2005 06:03:54 -0400 (EDT)
  • Sender: owner-wri-mathgroup at


when I NDSolve a 2nd order DE, I cant seem to give two boundary 
conditions at different point of an interval I am solving it on:

NDSolve[{f''[x]==K^2*Sin[f[x]],f'[-L]==A, f[-L]==B},f,{x,-L,L}] 
produces good result, but i.e.

NDSolve[{f''[x]==K^2*Sin[f[x]],f'[-L]==A, f[L]==B},f,{x,-L,L}]
  ____here derivative is given at left edge, but the functi0n itself is 
given at the right edge___

produces error:

"The differential equation(s) and/or boundary conditions are not linear 
in the dependent variables. NDSolve requires linearity to compute the 
solution of a multipoint boundary value problem. "

Is there a way around this?



  • Prev by Date: Re: Slow performance on OS X?
  • Next by Date: Bug in Integrate in Version 5.1?
  • Previous by thread: Re: ZTarnsform[Sin[4 n],n,z] OK, but ZTransform[Sin[5 n],n,z,] hangs?
  • Next by thread: Re: Boundary conditions in NDSolve