...multi-variate [Subscripted vars, display problem]



    From: "Robert Dodier" <robert.dodier at gmail.com>
    Date: Sun, 7 May 2006 10:06:14 -0600

    ...
    Maxima allows subscripted variables x[1], x[2], x[3], ...

Hello Robert

I was aware of the existence of subscripted-vars (but not the
clever usage that you showed me for fncs), but stopped
using them because of a display problem.  Perhaps some kind
reader can help.

A complicated polynomial with a lot of x[2] variables was
easier to read than x2 etc, when I was able to use
`imaxima' (inside of Emacs), so that the subscripted-vars
were really displayed as ... variables with subscripts.

However, I now run `imaxima' with 

    display2d : true ;

rather than in its graphical mode

    display2d : imaxima ;

because the latter produces an error with almost everything
I do.  For instance

/--------------------------------------------------------\
(%I130)     display2d : true ;

(%I131) rand[i,j] := random(10);
(%o131)               rand     := random(10)
                          i, j
\________________________________________________________/

and everything is copacetic.  But 


/--------------------------------------------------------\
(%I132)     display2d : imaxima ;

(%I133) rand[i,j] := random(10);

Maxima encountered a Lisp error:
 
EVAL: too many parameters for special operator IF: (IF (ATOM (CADR X))
 (PROGN
  (SETQ L (TEX (TEXWORD F) L NIL LOP 'MFUNCTION) R
   (NCONC (TEX-LIST (CDR X) NIL (LIST "}") ",") R))
  (NCONC L (LIST "_{") R))
 (SETQ L (TEX (TEXWORD F) (APPEND L (LIST "\\isubscript{")) NIL LOP 'MFUNCTION)
  R (NCONC (TEX-LIST (CDR X) NIL (LIST "}") ",") R))
 (NCONC L (LIST "}{") R))

\________________________________________________________/

FWIW, I run Gentoo Linux and the CL is I use is Clisp.

Is the-above likely to be a problem with *my* Emacs setup,
or with the way that Gentoo installs Clisp+Maxima+Imaxima?

                                       Sincerely, -Jonathan
-- 
Prof. Jonathan LF King   Mathematics dept, Univ. of Florida
<squash at math.ufl.edu>,   <http://www.math.ufl.edu/~squash/>;