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
It looks like you're looking for lsum.
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.
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.
Sure. I'm closing this as wont-fix.
Log in to post a comment.
It looks like you're looking for lsum.
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.
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.
Sure. I'm closing this as wont-fix.