Logical comparisons of items in a two lists
- To: mathgroup at smc.vnet.net
- Subject: [mg75446] Logical comparisons of items in a two lists
- From: "actuary at mchsi.com" <actuary at mchsi.com>
- Date: Tue, 1 May 2007 03:22:01 -0400 (EDT)
Hello: I have two lists of real numbers, a & b. I want two compare individual items in one list to the corresponding items in the other list. For example Is a[[1]] > b[[1]]. At the end of the comparisons, I want to count the "Trues". I know how to do this use a "Table" statement and a "Count" statement. Is there a quicker, more efficient way of counting the number of "Trues". Thanks Larry
- Follow-Ups:
- Re: Logical comparisons of items in a two lists
- From: Carl Woll <carlw@wolfram.com>
- Re: Logical comparisons of items in a two lists