Professional Documents
Culture Documents
James H. Eshuis 516 Ontario Street St. Catharines, Ontario L2N 4N3 jeshuis@vaxxine.com
I present an equation for the calculation of position when moving forward or backward in a positive arithmetic progression cycle. I define the equation and give four examples. I apply the equation to the calculation of position in a positive geometric progression cycle and give two examples. For computer programmers, I write the equation in C++.
Clock Equation
For a positive arithmetic progression cycle with move number of terms, and starting at term , we can
The equation variables defined: : The ending term : The starting term 1
: The number of terms moved to the left (negative), or to the right (positive) : The common difference : The number of terms in the progression : The first term in the progression As the equation is a quantitative measure of movement in a positive arithmetic progression cycle, it is a clock equation.
If If
and and
then then
If If Example 3:
and and
then then
If If
and and
then then
If If
and and
then then
starting at term
, we can move
number of terms forward or backward through the progression using the equation
: The starting term : The number of terms moved to the left (negative), or to the right (positive) : The common ratio : The number of terms in the progression : The first term in the progression As the equation is a quantitative measure of movement in a positive geometric progression cycle, it is a geometric clock equation.
If If
and and
then then
If If
and and
then then
48
: The modulo (mod), the remainder of integer division ; // variables of integer type
-As the
: Returns base, raised to the power exponent : The modulo (mod), the remainder of integer division ; // variables of double floating point type ; // variables of integer type