Maxima Function
geosum (a, r, n)
Returns the sum of the geometric series from 1 to n. If n is infinity (inf) then a sum is finite only if the absolute value of r is less than 1.
inf
To use this function write first load(functs).
load(functs)