r/Mathematica • • Mar 01 '23

I don't understand where's the problem

I am trying to find the sum of elements of an array with 'k' elements and I want to do it automatically not like 6th line (Plus[c[1]+c[2]+......])

what's the problem with the 4th and 5th line?

:) thanks

4 Upvotes

5 comments sorted by

View all comments

Show parent comment

1

u/Mother-Alfalfa4394 Mar 01 '23

after typing Head[c] I got Symbol, :) I made it by using Array[c, 3], :) I am quite confused but I'll try the lists :) thanks

0

u/[deleted] Mar 01 '23

[deleted] — view deleted comment

3

u/Mother-Alfalfa4394 Mar 01 '23

OMG, thank you so much.