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

< Previous CommentHelp | Reply To Comment | Reply To Topic
Author Comment/Response
Bill Simpson
06/20/12 11:16am

With a brand new fresh squeaky clean notebook opened and without having touched a key I scrape your code from you post here, paste it into the notebook, tap <shift><enter> and get

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

Out[1]= {{y->InterpolatingFunction[{{0.,30.}},<>]}}

So I am guessing, and there is no way to prove it, that you may have previously assigned some value to y'[0] and that value was not 0.

Try to reproduce exactly the steps I did and see if you get your previous result or mine.

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
< Previous CommentHelp | Reply To Comment | Reply To Topic