about "arrange the order of alphabets"



?? ? <f_chopinjp at yahoo.co.jp> writes:

> Hello,
>
>  When you get the answer of "a times b", the out put is "a
> b". But this order is not always good. For example,
> "E=mc^2". So, like this example, when I want to arrange
> the order of terms, what do I do for it? Make a new .lisp
> file?  

See ordergreat and orderless. They let you specify the order in which
variables should be listed. Example:

Maxima 5.21post http://maxima.sourceforge.net
using Lisp SBCL 1.0.40.0.debian
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
The function bug_report() provides bug reporting information.
(%i1) E = m*c^2;
                                        2
(%o1)                              E = c  m
(%i2) ordergreat (c, m);      
(%o2)                                done
(%i3) E = m*c^2;
                                          2
(%o3)                              E = m c
(%i4) %o1;
                                        2
(%o4)                              E = c  m

Note that when I redisplay %o1, it's still in the old order. This is
because there's an internal flag set saying that the expression is fully
simplified and doesn't need to be messed around with.

If you want to work with expressions in the CRE format, rat allows you
to specify the order of variables too:

(%i5) rat (%o1, m, c);
                                        2
(%o5)/R/                           E = c  m
(%i6)

>  And please tell me how to reply to answer mails of my
> question.

I'm not sure what you mean. Subscribe to the mailing list and reply to
its address?


Rupert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 315 bytes
Desc: not available
URL: <http://www.math.utexas.edu/pipermail/maxima/attachments/20100914/3cb50add/attachment.pgp>;