MathGroup Archive 2008

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

Search the Archive

Re: more looping trouble

  • To: mathgroup at smc.vnet.net
  • Subject: [mg85480] Re: more looping trouble
  • From: "David Park" <djmpark at comcast.net>
  • Date: Mon, 11 Feb 2008 06:21:48 -0500 (EST)
  • References: <fomjsd$hsj$1@smc.vnet.net>

table = {{1, 2, 3}, {2, 3, 4}};
Take[#, 2] & /@ table
{{1, 2}, {2, 3}}

-- 
David Park
djmpark at comcast.net
http://home.comcast.net/~djmpark/


"Francis Bitonti" <frankb.mail at gmail.com> wrote in message 
news:fomjsd$hsj$1 at smc.vnet.net...
> Sorry for these lame questions but I'm still trying to get my head around
> loops. I though I had it but I hit a snag today.
>
> I have a table of numbers {{1,2,3},{2,3,4}} I want to use a loop to remove
> the third integer in each set and reassemble them as a new table.
> However, something is going wrong I think it's because i'm not grasping 
> some
> fundamental idea about how to perform these type of operations on tables.
>
> CLICK THIS LINK TO VIEW MY NOTEBOOK IN HTML FORMAT
> http://www.fadarch.com/math/test.html<http://www.fadarch.com/math/test.html>
>
>
>
>
>
> -- 
>
> _Francis Bitonti
> web: http://www.fadarch.com/
>
> 



  • Prev by Date: Re: NDSolve and Parametric Plot
  • Next by Date: What's the new "Code" Style?
  • Previous by thread: Re: more looping trouble
  • Next by thread: Re: more looping trouble