-----maxima-bounces at math.utexas.edu wrote: -----
>It could be due to some changes I made some time ago to the function tms
>and friends to tell maxima to simplify expressions of the form a*a^n to
>a^(n+1), where a is a number.
Non-ideal behavior:
(%i1) x - 2 * 2^n;
(%o1) x-2^(n+1) <-- OK
(%i2) -2 * 2^n;
(%o2) -2*2^n <-- OK, but kinda inconsistent with (%o1)
(%i3) x + %;
(%o3) x-2*2^n
(%i4) % - %o1;
(%o4) 2^(n+1)-2*2^n <-- doesn't simplify to zero; should it?
(%i5) expand(%,0,0);
(%o5) 2^(n+1)-2*2^n
Barton