On 2/17/09, Wen Xi <seahalo at gmail.com> wrote:
> When I wrote 0x20 in hex mode, it report error.
>
> (%i2) 0x20;
> Incorrect syntax: X20 is not an infix operator
> 0x20;
> ^
>
> Is there other way to represent hex number.
Since this is a frequently asked question, I';ve taken the liberty of
applying the patch shown in this message:
http://www.math.utexas.edu/pipermail/maxima/2008/011033.html
The variables ibase and obase are the base for input and output
of integers, respectively. These may be assigned a value 2 through
36, inclusive. When ibase > 10, digits 0 through 9 are interpreted
in ibase, which is correct, but there is no way to input a
digit a, b, c, ... z. The patch, which I have committed, makes
it possible to input a, b, c, ..., z as digits when ibase > 10.
However, these characters are interpreted as digits only when
the first digit is 0 through 9. So tokens which are now interpreted
as symbols continue to be symbols.
FWIW
Robert Dodier