Documentation

Common.Real.Sequence.Arithmetic

Common.Real.Sequence.Arithmetic #

A characterization of an arithmetic sequence, i.e. a sequence with a common difference between each term.

A 0th-indexed arithmetic sequence.

Instances For

    Returns the value of the nth term of an arithmetic sequence.

    This function calculates the value of this term directly. Keep in mind the sequence is 0th-indexed.

    Equations
    Instances For

      Returns the value of the nth term of an arithmetic sequence.

      This function calculates the value of this term recursively. Keep in mind the sequence is 0th-indexed.

      Equations
      Instances For

        The recursive and closed term definitions of an arithmetic sequence agree with one another.

        A term is equal to the next in the sequence minus the common difference.

        noncomputable def Real.Arithmetic.sumClosed (seq : Real.Arithmetic) (n : ) :

        The summation of the first n + 1 terms of an arithmetic sequence.

        This function calculates the sum directly.

        Equations
        Instances For

          The summation of the first n + 1 terms of an arithmetic sequence.

          This function calculates the sum recursively.

          Equations
          Instances For

            The recursive and closed definitions of the sum of an arithmetic sequence agree with one another.