Sequence: Difference between revisions

From Objective Mathematics
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
A '''sequence''' is a [[function]] which takes [[natural numbers]] as inputs, and returns [[numbers]] as outputs.  
A '''sequence''' is a [[function]] which takes [[natural numbers]] as inputs, and returns [[numbers]] as outputs.


== The Cauchy condition ==
== The Cauchy condition ==
[TODO I now think this notion is problematic. See below. ]
Suppose that <math>\{ a_n \}_{n=1}^\infty</math> is a sequence that computes [[π]]. [TODO what does this even mean? Does it actually make sense? If π is the ratio between a ''real'' circle's circumference and a ''real'' circle's diameter, then it's not a single number, but some class of numbers. Sometimes the ratio is 3.14, sometimes it's 3.18, etc.]   
Suppose that <math>\{ a_n \}_{n=1}^\infty</math> is a sequence that computes [[π]]. [TODO what does this even mean? Does it actually make sense? If π is the ratio between a ''real'' circle's circumference and a ''real'' circle's diameter, then it's not a single number, but some class of numbers. Sometimes the ratio is 3.14, sometimes it's 3.18, etc.]   


Line 56: Line 58:
* a C++ program which takes in a uint32, ''n'', and outputs 2''n''+1
* a C++ program which takes in a uint32, ''n'', and outputs 2''n''+1
* the following table on my screen [a screenshot of a few rows of an excel table where the entries are 2*row + 1 ]
* the following table on my screen [a screenshot of a few rows of an excel table where the entries are 2*row + 1 ]
* etc.
* a succession of locations of a bouncing ball at various times
 
== The problem with Cauchy ==
All those things are examples of sequences. But are they, or could they be, examples of ''Cauchy'' sequences? First we must figure out what that question means.
 
Suppose I identify a real life thing <math>R</math> as being a unit of a sequence <math>\{S_n \} </math>. In my specification of <math>\{S_n \} </math> I had to be very precise, so it makes perfect sense to ask whether or not <math>\{S_n \} </math> is Cauchy. However, to ''answer'' whether or not <math>\{S_n \} </math> is Cauchy, I have to go to arbitrarily large <math>n</math>; I have to think about parts of <math>\{S_n \} </math> that have no actual referent in <math>R</math>.
 
A consequence of this fact is that if I had instead
 
is some finite thing, I could have instead identified <math>R</math> as being a unit of another sequence <math>S'</math>.

Revision as of 20:09, 8 July 2024

A sequence is a function which takes natural numbers as inputs, and returns numbers as outputs.

The Cauchy condition

[TODO I now think this notion is problematic. See below. ]

Suppose that is a sequence that computes π. [TODO what does this even mean? Does it actually make sense? If π is the ratio between a real circle's circumference and a real circle's diameter, then it's not a single number, but some class of numbers. Sometimes the ratio is 3.14, sometimes it's 3.18, etc.]

The practical question to answer, for someone computing this sequence on a computer, is "after how many steps can I stop running the computer program?" The answer is that you should wait until successive steps of the sequence vary by amounts smaller than your desired accuracy.

For example, if your target accuracy is 0.01, and if the printout looks like

1 4
2 3.0
3 3.2
4 3.09
5 3.16
6 3.139
7 3.143
8 3.1408
9 3.1419
10 3.14149
... ...

then we can stop computing around step 9, because at that point the output of the programming is varying by amounts much smaller than 0.01.

But how do we know that later, after many more steps, the sequence won't change in such a way that the earlier digits are affected? E.g. what if the 11th element of the sequence is 3.15? The answer is that what I have done in the above paragraph is I have implicitly assumed that the sequence satisfies the Cauchy condition. A sequence is said to satisfy the Cauchy condition if, for any level of desired accuracy, there is some point beyond which any two outputs of the algorithm differ by an amount smaller than the desired accuracy. More formally, satisfies the Cauchy condition if for any such that there exists an such that if then .

Note that the Cauchy condition is only an idealization of the property that we would actually want a sequence to satisfy in real life. Some Cauchy sequences are not practical: For example, someone could define a Cauchy sequence for which we must choose to be at least a googolplex whenever . Conversely, there are some practical sequences which are not Cauchy: For example, some sequences of partial sums that arise in perturbation theory are divergent, but give accurate and useful results if we only go a dozen terms deep into the sequence.

Examples

The sequence could be properly thought of as that concept which---in appropriate contexts---subsumes the following concretes:

  • the method that a child uses to produce the nth odd number
  • a C++ program which takes in a uint32, n, and outputs 2n+1
  • the following table on my screen [a screenshot of a few rows of an excel table where the entries are 2*row + 1 ]
  • a succession of locations of a bouncing ball at various times

The problem with Cauchy

All those things are examples of sequences. But are they, or could they be, examples of Cauchy sequences? First we must figure out what that question means.

Suppose I identify a real life thing as being a unit of a sequence . In my specification of I had to be very precise, so it makes perfect sense to ask whether or not is Cauchy. However, to answer whether or not is Cauchy, I have to go to arbitrarily large ; I have to think about parts of that have no actual referent in .

A consequence of this fact is that if I had instead

is some finite thing, I could have instead identified as being a unit of another sequence .