sum

Calculates the sum of the inputted expression regarding the start and end values. Depending on input, function can return scalar, vector, matrix or complex number.

Arguments

  1. Expression for summing
  2. Integer starting value
  3. Integer ending value
  4. Symbol

Output

Calculated sum

Examples

sum