#908 2*3*2^k is 6*2^k

closed
nobody
Lisp Core (471)
5
2006-05-02
2006-04-27
Raymond Toy
No

Current CVS (2006/04/27) has 2*3*2^k becoming 6*2^k.

Should this be 3*2^(k+1)? It would be nice, but....

What about a*b^k where a is a large number? Do we want
to check if a contains any powers of b so we can return
a new result of the form (a/b^k)*b^(k+1)?

Discussion

  • Raymond Toy

    Raymond Toy - 2006-05-02
    • status: open --> closed
     
  • Raymond Toy

    Raymond Toy - 2006-05-02

    Logged In: YES
    user_id=28849

    This particular bug is fixed. We basically handle the case
    of m/n*b^k and convert that to m1/n1*b^k1 by removing powers
    of b from m and n.

     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks