rules on vector sequence
- To: mathgroup at smc.vnet.net
- Subject: [mg98018] rules on vector sequence
- From: Filippo Miatto <sottosupremo at gmail.com>
- Date: Sat, 28 Mar 2009 05:41:26 -0500 (EST)
Dear all, I need to generate all the vectors, of a given length N, that have these three properties: 1- the entries have to be among -2,-1,0,1,2 2- the sum of all the entries has to be 0 3- only two or four of the entries can be different from 0 do you have any suggestions on how i can do that? i tried something but without success.. expecially i don't know how to implement the third rule.. thank you in advance! Filippo
- Follow-Ups:
- Re: rules on vector sequence
- From: DrMajorBob <btreat1@austin.rr.com>
- Re: rules on vector sequence
- From: DrMajorBob <btreat1@austin.rr.com>
- Re: rules on vector sequence