MathGroup Archive 2006

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

Search the Archive

Re: Remove Indeterminate elements

  • To: mathgroup at smc.vnet.net
  • Subject: [mg64292] Re: [mg64280] Remove Indeterminate elements
  • From: "Baris Erbas" <berbas at anadolu.edu.tr>
  • Date: Fri, 10 Feb 2006 02:13:29 -0500 (EST)
  • Organization: Anadolu University
  • Reply-to: <berbas at anadolu.edu.tr>
  • Sender: owner-wri-mathgroup at wolfram.com

Dear Maarten,
I had sorted out the problem with a test under a For loop, but the Select
function you suggested seems much shorter and efficient. 

Thank you all for your help.
Baris

> -----Original Message-----
> From: Maarten van der Burgt [mailto:maarten.vanderburgt at icos.be]
To: mathgroup at smc.vnet.net
> Subject: [mg64292] Re: [mg64280] Remove Indeterminate elements
> 
> 
> Baris,
> 
> With the function Select you can tackle these problems.
> 
> t={{1,2},{3,4},{5,6},{Indeterminate,Indeterminate},{8,9}}
> 
> Select[t,NumericQ[Plus@@#]&]
> 
> {{1,2},{3,4},{5,6},{8,9}}
> 
> The 2nd argument in Select adds the entities of the elements of t and
> return False when the result in not Numeric.
> 
> Hope this helps
> 
> Maarten
> 
> 
> 
> 
>                     "Baris Erbas"
>                     <berbas@anado        To:     mathgroup at smc.vnet.net
>                     lu.edu.tr>           cc:
>                                          Subject: [mg64292]     [mg64280] Remove
> Indeterminate elements
>                     09/02/2006
>                     08:44
>                     Please
>                     respond to
>                     berbas
> 
> 
> 
> 
> 
> 
> 
> Dear All,
> 
> I have been trying to remove some elements of a list which should be quite
> straightforward. The list is as follows:
> 
> {{x1,y1},{x2,y2},.{xi,yi},{Indeterminate,Indeterminate},.{xn,yn}}. All the
> components are real numbers apart from some Indeterminate expressions. I
> want the list without the Indeterminate terms. I have been trying to use
> Delete with If command but cannot succeed.
> 
> Can anyone help please?
> 
> Thanks
> 
> 
> 



  • Prev by Date: text bounding box size
  • Next by Date: Re: Comparison of Mathematica on Various Computers
  • Previous by thread: Re: Remove Indeterminate elements
  • Next by thread: Re: Remove Indeterminate elements