Re: What is the function doing

*To*: mathgroup at smc.vnet.net*Subject*: [mg39889] Re: What is the function doing*From*: peter weijnitz <pewei at algonet.se>*Date*: Sun, 9 Mar 2003 18:39:34 -0500 (EST)*Organization*: Telenordia/Algonet*References*: <b4f6im$7h3$1@smc.vnet.net>*Sender*: owner-wri-mathgroup at wolfram.com

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 > > JMD