Mytutorfriend- Your friendly tutor

July 8, 2008

Easy Summation

Filed under: Algebra — mytutorfriend @ 11:29 pm
Tags: , ,

A formula that would sum all the numbers between two numbers, inclusive.


x is the smaller number of the two. y is the larger one.

This formula has the advantage that it can be used quickly for huge numbers of integers, such as databases and arrays.


Blog at