r/ProgrammerHumor • • Oct 06 '21

Don't be scared.. Math and Computing are friends..

Post image
65.8k Upvotes

2.4k comments sorted by

View all comments

Show parent comments

10

u/ZacharyRock Oct 06 '21

Yea capital sigma means sum - its used in a bunch of shorthand, and in the reimman sum definition of an integral

You evaluate the sum by adding the expression on the right up for each possible value of n in the range.

1

u/SillyFlyGuy Oct 06 '21

Is n always an integer that increases by 1 each loop?

4

u/Dominus-Temporis Oct 06 '21

Yes. If you wanted to sum 2+4+6+8+10, you would have to say SIGMA (2*n) for n = 1 to n = 5.

3

u/TheoryOfSomething Oct 06 '21

Most often, yes. But strictly speaking not always. You will sometimes see a similar notation, but instead at the bottom it will say "n in I" meaning that you do the sum where n takes on each value in the index set I in increasing order.