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

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
Michael
12/02/12 09:22am

Put the initialization of constants first:

imagesize = 350; n = 2; xi = 3; ti = 0; ts = 1000; m = .3; tp = 2;
l = -1; ph = 1.9; phd = 1.7; \[Kappa] = 2

and I would avoid SetDelayed (:=) and use an ordinary =.

Next change the typos ai to xi in the last cell.

The Method names are usually supposed to be strings, but they make work as symbols. I changed it to

Method -> {"StiffnessSwitching",
Method -> {"ExplicitRungeKutta", Automatic}}

True is not a Graphics directive, so change it to one or to {}.

Then it all works with only a couple of warnings.

NDSolve often gives warnings, because DEs can have all sorts of mathematical difficulties. You can turn them off with the function Quiet[], but you probably want them. You might need to check if they are indicating an intrinsic problem with the system or a problem with your setup.

URL: ,

Subject (listing for 'NDSolve')
Author Date Posted
NDSolve Amir Hadi Zi... 11/29/12 4:39pm
Re: NDSolve Bill Simpson 11/29/12 6:43pm
Re: Re: NDSolve Amir Hadi Zi... 12/01/12 02:15am
Re: Re: Re: NDSolve Bill Simpson 12/01/12 1:36pm
Re: Re: Re: Re: NDSolve Amir Hadi Zi... 12/02/12 00:58am
Re: Re: Re: Re: Re: NDSolve Bill Simpson 12/03/12 01:12am
Re: NDSolve Michael 12/02/12 09:22am
Re: Re: NDSolve Amir Hadi Zi... 12/03/12 01:25am
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic