MathGroup Archive 1998

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

Search the Archive

Re: defining "regions"

  • To: mathgroup at smc.vnet.net
  • Subject: [mg14770] Re: defining "regions"
  • From: "M. Rommel" <rommel at bc.edu>
  • Date: Sat, 14 Nov 1998 03:08:01 -0500
  • Organization: UltraNet Communications , an RCN Company http://www.ultranet.com/
  • References: <72588n$8an@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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 smc.vnet.net>...
>    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"