Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'NDSolve issue' topicStudent Support Forum > General > "NDSolve issue"

Next Comment >Help | Reply To Topic
Author Comment/Response
Eric Stout
06/18/12 4:29pm

When I attempt to use NDSolve on a second order ODE, the initial condition for the first derivative keeps becoming a Boolean check. For example, from the NDSolve page,

s = NDSolve[{y''[x] + Sin[y[x]] y[x] == 0, y[0] == 1, y'[0] == 0}, y, {x, 0, 30}]

Gives the error

NDSolve::deqn: Equation or list of equations expected instead of False in the first argument {Sin[y[x]] y[x]+(y^\[Prime]\[Prime])[x]==0,y[0]==1,False}. >>

With the output:
NDSolve[{Sin[y[x]] y[x] + (y^\[Prime]\[Prime])[x] == 0, y[0] == 1, False}, y, {x, 0, 30}]

I can't find anything that would give such an odd result.

URL: ,

Subject (listing for 'NDSolve issue')
Author Date Posted
NDSolve issue Eric Stout 06/18/12 4:29pm
Re: NDSolve issue Bill Simpson 06/20/12 11:16am
Next Comment >Help | Reply To Topic