However,

   0 2 2#:_5
_2 1 1

NB. And

   #.0 2 2#:_5
_5

I believe there is a comment to that effect in the help for 'Antibase'

Enjoy
Ken


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of June Kim
Sent: 10 June 2007 07:49
To: Programming forum
Subject: [Jprogramming] (anti)base on negative numbers

Base and antibase isn't exactly inverse from each other.

   #. 1 0 1
5
   #: 5
1 0 1
   #. -1 0 1
_5
   #:_5
0 1 1

The result of antibase is always positive(something of modular arithmetic?).

What's the rationale behind this?

Thanks in advance.
----------------------------------------------------------------------
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