MathGroup Archive 2002

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

Search the Archive

Re: parameter restrictions

  • To: mathgroup at
  • Subject: [mg32437] Re: [mg32428] parameter restrictions
  • From: BobHanlon at
  • Date: Sun, 20 Jan 2002 04:28:15 -0500 (EST)
  • Sender: owner-wri-mathgroup at

In a message dated 1/19/02 8:05:36 PM, sosolala at 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
>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