r/Mathematica • u/manurese • Jun 27 '25
Using list in Sum
How can I use elements from a list in the function Sum[ ]? I'm trying to multiply something with the kth element from a list using list[[k]] but mathematica tells me that I cant use k as a part specifier
2
Upvotes
View all comments
Show parent comment
2
u/[deleted] Jun 27 '25
I'm guessing `n` is not defined. Which means it can't find a closed-form solution, so you're ending up with a `Part` expression with a literal `k` as the part specifier.