I think it is because in J lists are used to represent binary numbers. 
I prefer the two's-complement interpretation of these lists, but can 
understand interest in an interpretation related to J's monadic - .

    - 1 0 0 1
_1 0 0 _1

Kip

On 12/29/2011 5:32 PM, Skip Cave wrote:
>   I'm not sure why there is so much discussion on placing negative signs
> interspersed among the digits. Why can't binary numbers be represented just
> like any other base numbers?
>
> 4 base 10 = 100 base 2 = 1 base 4
> _4 base 10 = _100 base 2 = _1 base 4
>
> 100 base 10 = 1100100 base 2 = 1204 base 4
> _100 base 10 = _1100100 base 2 = _1204 base 4
>
> A single negative sign in front of the digits represents a negative number,
> no matter what base it is in.
>
> Leading zeros don't affect the process..
>
> 004 base 10 = 100 base 2 = 001 base 4
> _004 base 10 = _100 base 2 = _001 base 4
>
> Skip
> .
>
> On Thu, Dec 29, 2011 at 2:30 AM, Aai<agroeneveld...@gmail.com>  wrote:
>
>>
>>
>> On 28-12-11 19:46, Kip Murray wrote:
>>> It looks pretty to me.  Linda will like your treatment of negatives.
>>>
>>> brAai =: (**|.@:(2| [:}:<.@-:^:a: )&.|:@:|)`,@.(0-:])
>>
>> Thanks for composing this beautiful the verb name 'braai' that is
>> Zuidafrikaans for barbecue.
>>
>> --
>> Met vriendelijke groet,
>> @@i = Arie Groeneveld
>>
>> ----------------------------------------------------------------------
>> 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