Dear All,
 to start in J, i use labs.

 in this page,
 ── (23 of 35) Numbers (ctd) ─────────────────────────────────
 Note the "e" notation used in 2.41785e24, meaning:

    2.41785 * 10^24

 J has other number notations that use letters:
 )
     3b102     NB. base (102 in base 3)
 11

 my eyes are horrified by the result

 11 in base 3 is
     (1*3^1)+(1*3^0)
 4

 i verifid list of power
     3^i.5
 1 3 9 27 81

 i tried by hand to convert 102 in base 3
     (1*3^4)+(2*3^2)+(3*3^0)
 102
 result is 1 0 2 0 and not 11 lik your sample

 not only
 99b102   102 in base 99
 result by hand is (1*99^1)+(3*99^0)
 but J give a strange result
     99b102
 9803

 and the golden medal for the big foot of calculus
     4b5
 5
     (1*4^1)+(1*4^0)
 5
 the number 5 in base 4 is 11 !
 not only ! 5 is over the base 4

 possible i do a mistake, i dont masterize J language.

 i try to use a best notation
     +/ 0 0 1 1 * 4^|. i.4
 5
 0 0 1 1 in base 2 result 3 in base 10
 last try :
     2b3
 3

 Best Regards,
 Yves
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to