Documentation

Common.Real.Sequence.Geometric

Common.Real.Sequence.Geometric #

A characterization of a geometric sequence, i.e. a sequence with a common ratio between each term.

structure Real.Geometric :

A 0th-indexed geometric sequence.

Instances For

    Returns the value of the nth term of a geometric 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 a geometric 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 a geometric sequence agree with one another.

        noncomputable def Real.Geometric.sumClosed (seq : Real.Geometric) (n : ) :
        seq.r 1

        The summation of the first n + 1 terms of a geometric sequence.

        This function calculates the sum directly.

        Equations
        Instances For

          The summation of the first n + 1 terms of a geometric sequence.

          This function calculates the sum recursively.

          Equations
          Instances For

            The recursive and closed definitions of the sum of a geometric sequence agree with one another.