It is by definition that 0=x*.y if x=0 or y=0.
Then the advantages are that *. is the same 
as "and" for booleans and that the identity
(x*.y)=x(*%+.)y holds for x=0 or y=0 .



----- Original Message -----
From: Raul Miller <[email protected]>
Date: Wednesday, March 4, 2009 9:46
Subject: Re: [Jprogramming] LCM and GCD
To: Programming forum <[email protected]>

> On Wed, Mar 4, 2009 at 11:28 AM, Devon McCormick 
> <[email protected]> wrote:
> > More importantly, what is the GCD versus the LCM for boolean 
> arguments?  The
> > result tables are the same as "or" and "and", respectively. 
>  This gives you
> > consistent results whether you think of zero and one as 
> numbers or as
> > boolean values.
> 
> However,
>    1 *. 0
> 0
> often leaves me wondering why I do not get 0 from
>    2 *. 6
> 
> I "know" the answer, but I have not seen a proper formal
> description.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to