Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Comparing List Elements' topicStudent Support Forum > General > "Comparing List Elements"

Next Comment >Help | Reply To Topic
Author Comment/Response
David
12/22/12 7:24pm

Hello! First post here on the forums.
I've been pretty self-sufficient with the built-in documentation but am stuck on a current project.

Here's my problem: I have a list (we'll call it A) of lists generated by Tuples. The inner lists are of length 4, and I want to select all elements from A such that if #[[1]]==#[[3]] then #[[2]]!=#[[4]]. So I want all elements of A such that if the first element matches the third, then the second element doesn't match the fourth.

Thanks in advance!

URL: ,

Subject (listing for 'Comparing List Elements')
Author Date Posted
Comparing List Elements David 12/22/12 7:24pm
Re: Comparing List Elements Bill Simpson 12/22/12 10:20pm
Re: Comparing List Elements yehuda 12/23/12 02:20am
Re: Comparing List Elements Nasser M. Ab... 12/23/12 08:10am
Next Comment >Help | Reply To Topic