Progression Library 0.0.1
A header only arithmetic, geometric and fibonacci progression library
Loading...
Searching...
No Matches
Progression Library

A header-only C++ progression library implementing arithmetic, geometric, and Fibonacci progressions.

Features

  • Arithmetic progressions
  • Geometric progressions
  • Fibonacci sequences
  • Easy-to-use interface

Usage

#include "progression.hpp"
int main(){
Progression *ap = new ArithProgression(2, 3);
delete ap;
return 0;
}
Arithmetic progression: each term is obtained by adding a fixed increment.
Definition progression.hpp:83
A header only c++ progression library.
Definition progression.hpp:40
void print_progression(int n)
Prints the first n terms of the progression.
Definition progression.hpp:187

To see the documentation for the core logic, please check the Progression class.