Skip to main content

Geometric progression

Returns a geometric progression: a sequence of numbers where each term after the first is found by multiplying the previous one by a fixed non-zero number called the common ratio: r,r2,r3,....

Syntax

geometric_progression(Expression, Integer)
geometric_progression(Expression, List | Vector | Range)

Description

Given an expression r and a positive integer n, returns a vector v=[r0,r,r2,...,rn-1].

arithmetic.geometric_progression1.calc.png

Given an expression rr and a list, vector or range w with elements w1,...,wn, returns a vector v=[rw1,rw2,rw3,...,rwn].

arithmetic.geometric_progression2.calc.png