#844 2*2^k doesn't simplify

closed
nobody
None
5
2006-04-27
2005-12-19
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

  • Nobody/Anonymous

    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
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks