MathGroup Archive 2003

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

Search the Archive

Re: What is the function doing

  • To: mathgroup at
  • Subject: [mg39889] Re: What is the function doing
  • From: peter weijnitz <pewei at>
  • Date: Sun, 9 Mar 2003 18:39:34 -0500 (EST)
  • Organization: Telenordia/Algonet
  • References: <b4f6im$7h3$>
  • Sender: owner-wri-mathgroup at

I think it is supposed to output the coordinate triplets where the sum of
the coordinates are odd numbers, however it does not work as it stands, if
you write Select[Flatten[coord,1], OddQ[Plus @@ #] & ] instead, it does do
what I think it is supposed to do.
there could be some other intention to I guess
(the original Function just pics the odd numbers from the Flattened list)

er..just in case... with the semicolon at the end it does not seem to do
anything, so remove that.

Best ..
Peter W

Jdensmor wrote:

> Hi,
>     Can someone help me decipher how this function is working and what
> it is doing
> Select[Flatten[coord,2], OddQ[Plus @@ #] & ];
> coord= {{{0,0,0},{1,0,0},{1,1,0}...etc
> coord is a list of 3d position. I've looked up what each fucntion
> does, but I can't seem to put it all together for it to work. Thanks

  • Prev by Date: Running ssh in Mathematica
  • Next by Date: Re: Re: How to convert string to variable name
  • Previous by thread: Re: What is the function doing
  • Next by thread: Help with Format Background Color Cell Gray Box