Finite geometric Fourier amplitude (source code)

= Finite geometric Fourier amplitude

For $A$ terms with phase ratio $q$, the amplitude factor is $(1-q^A)/(1-q)$, with limiting value $A$ when $q=1$.