S.O.S. Mathematics CyberBoard

Your Resource for mathematics help on the web!
It is currently Sat, 30 Aug 2014 23:13:21 UTC

All times are UTC [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Mathematica Problem
PostPosted: Mon, 15 Mar 2010 18:26:06 UTC 
Hello there I was wondering if someone could give me a hand with a problem I'm having on Mathematica. I have the set X := {1,2,3,4}, and I have computed the Cartesian product of this set using Combinatorica.

I have inputted the two subsets
R:= {(1,2),(2,3),(3,4),(4,1)}
S:= {(2,1),(3,2),(4,3),(1,4)}

and I want to find the set

R o S = {(x,y) in X^2: there exists a unique z [depending on the pair (x,y)] such that (x,z) is in S and (z,y) is in R }

So i want mathematica to run through all the elements in X^2 and do a check to see if the condition in R o S is satisified. Is this possible? I have no idea how to define the set R o S or how to get mathematica to even run through all the 16 elements in X^2 to see if they satisfy certain conditions.

To clarify, (1,1) is in R o S because (1,4) is in S and (4,1) is in S. 4 is the unique element that joins x = 1 to y = 1. there is no other element except from 4 that does this.

Thanks for listening to my request and I hope someone can guide me on this. :)


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Contact Us | S.O.S. Mathematics Homepage
Privacy Statement | Search the "old" CyberBoard

users online during the last hour
Powered by phpBB © 2001, 2005-2011 phpBB Group.
Copyright © 1999-2013 MathMedics, LLC. All rights reserved.
Math Medics, LLC. - P.O. Box 12395 - El Paso TX 79913 - USA