Yes, that was a good catch and a neat approach to the problem in the first place. The following is a slight variation,
viewmat((1>+/~@:(4^~(%~i:)))*.1<+/~@:(2^~(%~i:)))666[load'viewmat' that works in j806 (untested in a full installation of j903). On Wed, Aug 17, 2022 at 10:41 AM Raul Miller <rauldmil...@gmail.com> wrote: > > On Tue, Aug 16, 2022 at 11:24 PM 'Rob Hodgkinson' via Programming > <programm...@jsoftware.com> wrote: > > But I noticed that since this is to the 4th power, why do you invoke +&| ? > > Hmm... > > Well, had I simplified that expression from some code I had written > previously where the power was an argument (and often fractional). > And, I had been working with complex numbers recently which led me to > overlook that potential simplification > > (For example: > > 1ad30^4 > _0.5j0.866025 > > ) > > Though I can't think of any useful reason to support complex arguments > and I certainly didn't use them in that sentence. > > But... you asked... > > Anyways: good catch. > > 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