Re: need to make a special function
- To: mathgroup at smc.vnet.net
- Subject: [mg68324] Re: need to make a special function
- From: "Ray Koopman" <koopman at sfu.ca>
- Date: Tue, 1 Aug 2006 06:59:54 -0400 (EDT)
- References: <eakec7$qvd$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
In[1]:= f = Tuples[{0,1},#]&
f[1]
f[2]
f[3]
Out[1]= Tuples[{0,1},#1]&
Out[2]= {{0},{1}}
Out[3]= {{0,0},{0,1},{1,0},{1,1}}
Out[4]= {{0,0,0},{0,0,1},{0,1,0},{0,1,1},
{1,0,0},{1,0,1},{1,1,0},{1,1,1}}