[GAP Forum] Different S and T

A. K. Upadhyay zeroaku at yahoo.co.in
Thu Jun 8 07:58:10 BST 2006


Hi,
 Below, is a small GAP program. Which, to my surprise prints same values for S and T. I would have like the values of S and T to be the following :
 
 S:= remains unchanged
 T:=[[0,2,5],[0,5,8],[0,2,3,5],[0,3,4,5]]
 
 I would be greatful if someone indicates a way out 
 
 Thanks
 
 Ashish
 
 ###########################################
 R:=[];;T:=[];;
 S:=[[0,1,2,5],[0,1,5,8],[0,2,3,5],[0,3,4,5]];;
 T:=S;;
 for i in [1..4] do
 if 1 in T[i] then
 RemoveSet(T[i],1);
 AddSet(R,T[i]);
 fi;
 od;
 Print("\n R = ", R , "\n S = ", S , "\n  T = ", T , "\n");
 ############################################
 
 Send instant messages to your online friends http://in.messenger.yahoo.com 

 Stay connected with your friends even when away from PC.  Link: http://in.mobile.yahoo.com/new/messenger/  


More information about the Forum mailing list