-@^.@|@j./"1 does the trick. You can also use (+/&.:*:) in place of |@j./ , leaving you with -@^.@(+/&.:*:)"1 .
Marshall On Tue, Dec 10, 2013 at 09:55:22AM -0500, Raul Miller wrote: > Is there a better way of doing this? > > {: +. r.inv j./1 1 > _0.346574 > > Assume 1 1 can be replaced with any reasonable coordinate pair. > > I'm looking for either conciseness or clarity (ideally both, but > mostly I want some good options). > > Thanks, > > -- > 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