MathGroup Archive 2008

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

Search the Archive

Re: Domains

  • To: mathgroup at smc.vnet.net
  • Subject: [mg85337] Re: Domains
  • From: dh <dh at metrohm.ch>
  • Date: Wed, 6 Feb 2008 05:44:19 -0500 (EST)
  • References: <foavks$hn3$1@smc.vnet.net>


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