Menu

#132 A three-argument form of sum()

None
wont-fix
nobody
None
5
2016-03-25
2016-03-25
No

We could add a 3-argument form to sum, just for the of sake of making it more analogous to makelist():

(%i1) l:[1,2,3,4,5]$
            sum(i^2,i,l);
(%o1) 55

Discussion

  • Kris Katterjohn

    Kris Katterjohn - 2016-03-25

    It looks like you're looking for lsum.

     
  • Gunter Königsmann

    Thanks a lot!
    This was indeed what I was looking for.

    Added a cross-ref from "sum" to "lsum" as commit a57cdfad1f0b2ab225ef99f551a5cf47b000b8c2 so this question will hopefully not arise again.

     
  • Gunter Königsmann

    Seems like I don't have the right to close feature requests. Would you be so kind and close this one for me? Thanks a lot,
    and kind regards,

    Gunter.

     
  • Kris Katterjohn

    Kris Katterjohn - 2016-03-25
    • status: open --> wont-fix
    • Group: -->
     
  • Kris Katterjohn

    Kris Katterjohn - 2016-03-25

    Sure. I'm closing this as wont-fix.

     

Log in to post a comment.