Use <....@^. or >....@^. if exact results are required. e.g. 2 <....@^. 2x^1e5 100000 2 <....@^. <: 2x^1e5 99999
The non-exact result of 2x^.2x^47 probably comes from the interpreter computing x^.y as (^.y)%^.x , not making a special case of x=2. ----- Original Message ----- From: Raul Miller <[email protected]> Date: Monday, June 15, 2009 9:16 Subject: Re: [Jprogramming] question on using ^ and ^. To: Programming forum <[email protected]> > On Mon, Jun 15, 2009 at 12:06 PM, > <[email protected]> wrote: > > Hum.... more observations: > > > > (-:!.0 <.) 2x ^. 2x^47 > > 0 > > (- <.) 2x ^. 2x^47 > 7.10543e_15 > > The issue, I think, is the implementation > of ^. not recognizing an exact integer > result was possible. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
