Re: need to make a special function
- To: mathgroup at smc.vnet.net
- Subject: [mg68298] Re: [mg68284] need to make a special function
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Tue, 1 Aug 2006 06:59:10 -0400 (EDT)
- Reply-to: hanlonr at cox.net
- Sender: owner-wri-mathgroup at wolfram.com
f[n_Integer?Positive] := IntegerDigits[Range[0, 2^n - 1], 2, n]; Bob Hanlon ---- Nabeel Butt <nabeel.butt at gmail.com> wrote: > > Dear Users, > I need help on making a special type of function which has the > following properties. > f[1]={{0},{1}} > f[2]={{0,0},{0,1},{1,0},{1,1}} > f[3]={{0,0,0},{0,0,1},{0,1,0},{0,1,1},{1,0,0},{1,0,1},{1,1,0},{1,1,1}} > .............so on you can see the pattern emerging. > I need a very efficient code to perform the above evaluation in some > optimization problem. > Thanks in advance. > regards, > Nabeel > -- > Nabeel Butt > LUMS,Lahore >