Thanks, all. Lots of options to work with!

Bob

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Raul Miller
Sent: November 26, 2007 2:47 AM
To: Programming forum
Subject: Re: [Jprogramming] Oblique function

Not quite as short as Brian Schott's approach:

   F=: (+/&i./  ,&.>  <./&i./@(1 _1*]))@$ { +/\./.

or, if you prefer,
   G=: (+/&i./ ,&.> [: |."1 <./&i./)@$ { +/\./.

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

Reply via email to