MathGroup Archive 2008

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

Search the Archive

Re: Domains

On Feb 6, 1:39 am, Akki <lodhaakhi... at> 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]


If you would like to use this variable in functions like Reduce, you
could try the expression (x==3 || x==5 || x==7) (or generating this
automatically from the list {3, 5, 7}:  Or@@(x==#& /@ {3,5,7}) ).


  • Prev by Date: Re: NDSolve: PDE's with more than 2 indep. variables.
  • Next by Date: Displaying Real Numbers
  • Previous by thread: Re: Domains
  • Next by thread: Mathematica 6.0.0 no graphics output on Windows XP