Hello,
I noticed the following inconsistent behaviour using imaxima in emacs.
It gives a different result depending on if I load the function from a batch file
or type the function directly in emacs.
I have the following function defined in the file test.max:
f01():=block([], y[1])$
Then I do in emacs:
(%i1) batch("test.max");
batching /home/nijso/test.max
(%i2) f01():=block([],y[1])
(%i3) f01();
(\%o3) y_{1}
(%i4) y[1]*f01();
(\%o4) y^{2 }\left(1\right)
the output is y^2(1), the "1" is not subscripted anymore, but appears between brackets.
The strange thing is, that when I type the function directly in emacs :
(%i5) f02():=block([],y[1]);
(\%o5) \mathrm{f02}\left(\right):=\mathbf{block}\;\left(\left[ \right] ,\linebreak[0]y_{1}\right)
(%i6) f02();
(\%o6) y_{1}
(%i7) y[1]*f02();
(\%o7) y_{1}^{2}
The "1" is now subscripted. wxmaxima 0.7.6 did not have this behaviour.
Regards,
Nijso
Some version numbers:
Maxima 5.16.3 http://maxima.sourceforge.net
Using Lisp CLISP 2.41 (2006-10-13)
This is GNU Emacs 22.1.1 (i586-suse-linux-gnu, GTK+ Version 2.12.0)
This is pdfTeX, Version 3.141592-1.40.3 (Web2C 7.5.6)