Re: What is the function doing

*To*: mathgroup at smc.vnet.net*Subject*: [mg39893] Re: What is the function doing*From*: atelesforos at hotmail.com (Orestis Vantzos)*Date*: Sun, 9 Mar 2003 18:40:35 -0500 (EST)*References*: <b4f6im$7h3$1@smc.vnet.net>*Sender*: owner-wri-mathgroup at wolfram.com

It should probably be Flatten[coord,1] since Flatten[coord,2] will eliminate all internal brackets leaving just a long list of numbers. Anyway, assuming that it is Flatten[coord,1] which creates a simple list of vectors, Select[Flatten[coord,1],OddQ[Plus@@#]&] will return those vectors in coord ,whose sum of coordinates is an odd number. In the example you gave that would be, {{1,0,0},...} Orestis densmore.3 at nd.edu (Jdensmor) wrote in message news:<b4f6im$7h3$1 at smc.vnet.net>... > 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 > > JMD