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

< Previous CommentHelp | Reply To Comment | Reply To Topic
Author Comment/Response
Bill Simpson
09/10/12 3:54pm

In Response To 'Re: NDSolve with parameter'
---------
The example you describe

f[a_?NumericQ, t_?NumericQ]

is usually used in arguments to functions that do not evaluate their arguments in the standard way. Sometimes things like Plot or Integrate or other similar functions, when given a function as an argument, will attempt some symbolic evaluations rather than strictly numeric evaluations. That often causes errors and confusion on the part of users.

But that isn't going to turn a variable 'a' into a numeric value so that NDSolve will be able to use it. All that would do is stop evaluation of your function until 'a' were given a numeric value, and I don't think that is what you want.

The only thing I can think which might possibly help you would be for you to create a Table of solutions, one for each numeric value of 'a.'

Then you could overlay plots of all the solutions, etc.

URL: ,

Subject (listing for 'NDSolve with parameter')
Author Date Posted
NDSolve with parameter Baris V. 09/09/12 4:36pm
Re: NDSolve with parameter Bill Simpson 09/09/12 10:27pm
Re: NDSolve with parameter Baris V. 09/10/12 04:45am
Re: Re: NDSolve with parameter Bill Simpson 09/10/12 3:54pm
< Previous CommentHelp | Reply To Comment | Reply To Topic