List operations
- To: mathgroup at smc.vnet.net
- Subject: [mg25399] List operations
- From: "Matt Herman" <Henayni at hotmail.com>
- Date: Fri, 29 Sep 2000 01:06:35 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Hi, Suppose I have a list of ordered pairs {{a1,b1},{a2,b2},...,{an,bn}}. What is an efficient way of pulling out all the pairs such that, if I do an operation on the first element in the list, and another on the second, and I sum them, they equal some predetermined constant? For instance, say 3*listpart[[1]]+listpart[[2]]^2 Thanks