MathGroup Archive 2002

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: parameter restrictions


In a message dated 1/19/02 8:05:36 PM, sosolala at hotmail.com writes:

>I am using Mathematica 4.0 and have a question about parameter restrictions.
>
>How can I define the range of values of a parameter, e.g. that alpha must
>be 
>positive or that (alpha + beta) must be less than unity?
>
>Although it may be a very simple question (and/or answer) I would be 
>delighted if I get an answer.
>

f[x_, a_?Positive] := a*x;

f[x_, a_?Positive, b_?NonNegative] := a^x*b  /; (a+b) < 1;


Bob Hanlon
Chantilly, VA  USA


  • Prev by Date: 3D plot of 3 lists of points need to show change vector arrows
  • Next by Date: Re: combining lists
  • Previous by thread: parameter restrictions
  • Next by thread: Re: parameter restrictions