maxima-bounces at math.utexas.edu wrote on 03/03/2011 10:34:18 AM:
> The simplifying package has a function which allows you to construct
> expressions tagged as simplified.
I didn't try all that hard, but I wasn't able to do this using the
simplifying package.
Maybe something like the following will work:
(%i26) :lisp(defun $mult_nosimp (&rest l) (cons '(mtimes simp) (sort l
'$orderlessp)))
$MULT_NOSIMP
(%i26) mult_nosimp(2,3,p,q);
(%o26) 2*3*p*q
Don't expect Maxima to work correctly with the output of
mult_nosimp--subverting
simplification has bad consequences; example:
(%i33) mult_nosimp(2,3,p,rat(x));
(%o33)/R/ 2*3*p*x
(%i34) %/x;
Maxima encountered a Lisp error: value #:X3118 is not of the expected
type LIST.
--Barton