> From: Fraser Jackson > The v is in the printed copy. Thanks for that confirmation Fraser. So an alternative mxp definition is required.
Both Devon's & mine don't produce the correct eigenvectors/eigenvalues. Aai's one does, if there are no objections I'll replace the original definition of mxp with his. Original mxp=: [: C. 0: ; <: , (,~ >:@|.)@>:@+:@i.@<:v New mxp=: [: C. 1 0 ; <:@(,~ >:@|.)@>:@+:@i...@-: > > ----- Original Message ----- > From: "Devon McCormick" > > I'll take a look at my printed copy when I get home but wouldn't be > > surprised if it's the same as on the website. > > > > Playing around with it, I came up with > > > > mxp=: ([: C. 0 ; <:)@([: (,~ >:@|.)@>:@+:@i. -:) > > > > which seems to accomplish what is described: "...takes a positive > even > > integer as argument and yields a list which is a permutation of the > > integers > > from 0 through one less than the argument." ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
