3
$\begingroup$

Lets say I have some numbers:

[1, 3, 5, 1, 10, 8]

What is the proper mathematical notation for the following operation?

$$ (1-3) + (3-5) + (5-1) + (1-10) + (10-8) $$

Here is what I was trying:

$$ \sum_{i=1}^{N} p_i - p_j$$

Is this correct? If now, what is the best way to write this?

  • 2
    What is $j$? It seems to me that you wat to sum up the differences of $p_i$ and $p_{i+1}$, not $p_j$2012-12-06

2 Answers 2