"Quantity in a group"(adsbygoogle = window.adsbygoogle || []).push({});

If you have 6 apples and you subtract 4, then you have 2 apples left "in the group".

"Quantity in an Indexed group"

I'm a computer programmer - I manipulate arrays of data (a.k.a. matrix)

In a math formula format: x_{1}, x_{2}, x_{3}... x_{n}

(as a side note - in a computer format: x[0], x[1], x[2]... x[n-1])

If I want the "quantity" from 6 to 4, then I always have to add 1 (6-4=2, 2+1=3 quantity)

Quantity of 3: x_{4}, x_{5}, x_{6}

Surprisingly, I was never taught this in grade school or high school.

Not to mention I always thought it had to do with the fact that a computer's array starts with index 0: x[0]

(It doesn't, although that fact adds confusion when turning math formulas into code)

My question is: Does this "add 1" scenario have a mathematical name?

(I've been trying to Google about it to add a note/comment to my code to explain "+1" without sounding stupid)

Thanks

**Physics Forums - The Fusion of Science and Community**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# B Index numbers vs. Quantity in a group

Tags:

Have something to add?

Draft saved
Draft deleted

Loading...

Similar Threads - Index numbers Quantity | Date |
---|---|

B Index changes for series | Oct 2, 2016 |

B How to Read the Index of a Calculus Textbook? | May 31, 2016 |

I Notation (index notation) | Mar 18, 2016 |

How to interpret the Pearson Correlation Index? | Dec 11, 2015 |

Finding the index number on a stretched cartesian grid | Nov 5, 2012 |

**Physics Forums - The Fusion of Science and Community**