Re: Help: boundary value problem

• To: mathgroup at smc.vnet.net
• Subject: [mg21268] Re: Help: boundary value problem
• From: "Artyom Shneyerov" <a-shneyerov at nwu.edu>
• Date: Tue, 21 Dec 1999 03:46:50 -0500 (EST)
• Organization: Northwestern University, Evanston, IL, US
• References: <831thk\$fkh@smc.vnet.net>
• Sender: owner-wri-mathgroup at wolfram.com

```Marco de Innocentis <mdi11 at hotmail.com> wrote in message
news:831thk\$fkh at smc.vnet.net...
> I need to solve a nonlinear ordinary second-order differential
> equation on a closed interval, knowing the value of the solution at
> the ends of the interval.  Is there a way of solving this problem
> using Mathematica, or does Mathematica only deal with initial value
> problems?
> If the latter, is there some function which performs the shooting
> method, so I can transform the boundary value into an initial value
> problem?
> Thanks,
>
> Marco de Innocentis

Try along these lines if an approximation is OK:

func=y/.NDSolve[{y''[x] + x y[x] == 0, y[0] == 1, y[1] == -1},
y, {x, 0, 1}][[1]]

func can then be used as a ususal function.

Artyom Shenyerov

```

• Prev by Date: Re: Display::initstate problems
• Next by Date: Re: Plotting a step function with the origin indicated
• Previous by thread: Help: boundary value problem
• Next by thread: non-uniform data surface...