class documentation
class GeometricProgression(Progression):
Iterator producing a geometric progression.
Method | __init__ |
Create a new geometric progression. |
Method | _advance |
Update current value by multiplying it by the base value. |
Instance Variable | _base |
Undocumented |
Inherited from Progression
:
Method | __iter__ |
By convention, an iterator must return itself as an iterator. |
Method | __next__ |
Return the next element, or else raise StopIteration error. |
Method | print |
Print next n values of the progression. |
Instance Variable | _current |
Undocumented |