MathGroup Archive 2008

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

Search the Archive

Re: Domains



Ho Akki,

there is MemberQ. E.g.

MemberQ[{3,5,7},x] will return True if x has the value 3 or 5 or 7. 

False otherwise.

hope this helps, Daniel



Akki wrote:

> Hi,

> 

> How does one create a domain for a variable in Mathematica ?

> 

> For e.g. x is a variable and I would like to create a domain for x

> consisting  of 3, 5, 7 only.

> i.e. dom = {3,5,7} then use the condition \Element[x,dom]

> 

> Thanks,

> Akki

> 




  • Prev by Date: Re: How should I start with mathematica?
  • Next by Date: Weights in NonlinearRegress / NonlinearFit. Versus data errors
  • Previous by thread: Domains
  • Next by thread: Re: Domains