Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1998

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

Search the Archive

Re: defining "regions"

  • To: mathgroup at
  • Subject: [mg14770] Re: defining "regions"
  • From: "M. Rommel" <rommel at>
  • Date: Sat, 14 Nov 1998 03:08:01 -0500
  • Organization: UltraNet Communications , an RCN Company
  • References: <72588n$>
  • Sender: owner-wri-mathgroup at

I am sure it is not the most beautiful solution (it reflects my current
level of expertise):

In[18]:=        pts={{1,2},{3,4},{1,5}}; In[19]:=       
F=(Abs[#[[1]]]<Pi/2)&&(Abs[#[[2]]]<Pi)&; In[20]:=        F[{1,3}]
Out[20]=    True
In[17]:=        F/@pts
Out[17]=    {True,False,False}

Let me know when you find a more elegant solution! Cheers, Martin

Naum Phleger wrote in message <72588n$8an at>...
>    I have a discreet set of {x,y} points and I want to check if each is
>in a particular continuos set of {x,y} points.  I can only define the
>region parametrically but other then that it looks something like this
>region= {-1<x<1 , 0<y<2}
>I want to perform a test like
>{x,y} "included in" region
>{0,1} "included in" region
>        ->True
>{5,7} "included in" region
>        ->False
>    Is this possible  My region is defined in a more difficult manner.
>It looks more like this
>region = F[{theta,fi}] for {-pi/2 < theta < pi/2}, {-pi < fi < pi }
>where F returns an {x,y} pair
>              -NAUM

  • Prev by Date: What is this doing...?...
  • Next by Date: Re: Re: Multiplying large polynomials
  • Previous by thread: defining "regions"
  • Next by thread: Re: defining "regions"