/// Returns an iterator following the geometric series,
/// with *a* being the initial value and *r* being the common ratio
pub
/// Returns an iterator following the arithmetic series,
/// with *a* being the initial value and *d* being the common difference
pub