Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#844 2*2^k doesn't simplify

closed
nobody
None
5
2006-04-27
2005-12-19
Stavros Macrakis
No

a*a^k => a^(k+1) OK
but
2*2^k => 2*2^k ???

Is this intentional behavior (under control of one of
our wonderfully obscure switches)? Or a bug?

Maxima 5.9.2 http://maxima.sourceforge.net
Using Lisp GNU Common Lisp (GCL) GCL 2.6.7 (aka GCL)

Discussion

  • Logged In: NO

    May be
    subst(2,a,a*a^k);

     
  • Raymond Toy
    Raymond Toy
    2006-04-27

    Logged In: YES
    user_id=28849

    As far as I can tell, there is no switch, obscure or
    otherwise, to control this. It's an oversight in the code.
    See simp.lisp version 1.20, which fixes this case, and also
    handles some others like 3/4*2^k.

    There are still other issues like 2*3*2^k is 6*2^k instead
    of 3*2^(k+1).

    I'm closing this bug as fixed, and adding a new bug.

     
  • Raymond Toy
    Raymond Toy
    2006-04-27

    • status: open --> closed