It would help to look at the definitions for #. in it's monadic form (base 2) and dyadic form. It says that the result in the dyadic form is +/w*y where w=:*/\.}.x,1
So, for 257b6 6 you have: x=:257 w=:*/\.}.x,1 +/w*y 6 If you try: x=:1 257 w=:*/\.}.x,1 +/\w*y 1548 Since you can't express 1 257b6 but you can do 257#.6, it follows that an understanding of #. should clarify a few things... Paul Gauthier APL Software Developer - Senior [EMAIL PROTECTED] Phone: 312-739-3467 Fax: 312-739-3496 CheckFree. The Company that Powers Payment on the WebSM. http://www.checkfree.com/paybillsonline dly <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 06/14/2006 11:47 AM Please respond to General forum <[email protected]> To General forum <[email protected]> cc Subject Re: [Jgeneral] Mathematical Roots of J & more musings to generalize, the number on the left should be a multiplier and on the right an exponent of 2 Why do I get these results for b 1b0 0 10b0 0 1b1 1 10b1 1 100b0 0 100b1 1 100ba 10 110ba 10 2^1 2 3 4 5 6 7 8 8 10 11 12 2 4 8 16 32 64 128 256 256 1024 2048 4096 4097b1 1 257b6 6 Donna [EMAIL PROTECTED] On 14-Jun-06, at 12:03 PM, Henry Rich wrote: > You are thinking that 11b2 means 11 in base-2 notation. > But no, it means 2 in base-11 notation. > > Henry Rich > >> -----Original Message----- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On Behalf Of dly >> Sent: Wednesday, June 14, 2006 11:56 AM >> To: General forum >> Subject: Re: [Jgeneral] Mathematical Roots of J & more musings >> >> wow? >> >> if b is base >> >> why is >> 11b2 >> 2 >> not >> 11b2 >> 3 >> or >> 12b2 >> 2 >> not >> 12b2 >> domain error >> 33bg >> 16 >> not >> 33bg >> 51 >> >> Constants and results are displayed in the default base 10 (a) >> why >> 11ba >> 10 >> not >> 11ba >> 11 >> > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
