| 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: , |
|