(I accidentally sent this to j.general, to which I'm not yet subscribed;
I don't expect that to go through, but if it does, apologies for the
duplication.)


Here's a simple question from a rank beginner:

Expressing polynomials as, for example,

  +/1 _1 1*x^i.3

works well, as long as x is a scalar.  If x is of higher rank, this
stops working.  My somewhat brute-force solution is to manually set the
rank used, as in:

  x=:2 3 5
  +/1 _1 1*x^_ 0 i. 3

Is this good style?  Is there a better way?

Thanks, and pardon the pun,
Johann

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to