#2267 simpsum error

open
nobody
5
2014-03-14
2011-08-30
snipergang
No

Executing the following statements yield two different results (the result of simpsum is incorrect):

T: sum((2^(k+i))/(2^(k+i)+2^(i)),i,0,k);
T, simpsum;
ev(T, [k=0]);

T, simpsum returns 0 on my system, where it should be (according to wolfram alpha):
(2^k*(1 + k))/(1 + 2^k)

wxWidgets: 2.8.11
Unicode support: yes
Maxima version: 5.25.0
Lisp: CLISP 2.49 (2010-07-07)

Discussion

  • snipergang

    snipergang - 2011-09-02

    Running:

    T, radcan;

    returns the korrekt result.

     
  • snipergang

    snipergang - 2011-09-02

    I forgot to mention in the last comment: While this provides a way to calculate the correct result, simpsum should still not return a *WRONG* value!

     
  • snipergang

    snipergang - 2014-03-14

    Just a reminder for whoever cares:

    sum((2^(k+i))/(2^(k+i)+2^(i)),i,0,k), simpsum;

    still returns 0 (which is wrong) in the latest maxima version.

     

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

Sign up for the SourceForge newsletter:





No, thanks