Hi all,
Here is a strange little bug.
Save a file with contents(with one line):
tex(m[0]^2);
Then, in maxima-5.13.0 (my system: SUSE Linux Enterprise Desktop 10 SP1 GNOME), batch it:
(%i1) batch("foo.max"); (Suppose the file name is foo.max)
I got the following strange result:
$$m^2\left(0\right)$$
While the right result should be:
$$m_{0}^2$$
For reference, the following is what on my screen (see (%i3)):
Maxima 5.13.0 http://maxima.sourceforge.net
Using Lisp CLISP 2.41 (2006-10-13)
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
This is a development version of Maxima. The function bug_report()
provides bug reporting information.
(%i1) display2d:false;
(%o1) false
(%i2) batch("test1.max");
batching .../test1.max
(%i3) tex(m[0]^2)
$$m^2\left(0\right)$$
(%o3) false
(%i4) tex(m[0]^(3/2))
$$m_{0}^{{{3}\over{2}}}$$
(%o4) false
The same if you use "load" command in maxima. While if you just type them in the terminal, it is normal.
See the following:
(%i5) kill(all);
(%o0) done
(%i1) tex(m[0]^2);
$$m_{0}^2$$
(%o1) false
And, if the index is not an integer, the output is right.
Best regards,
Yuanchuan Zou