Module: ModFactor::Math

Defined in:
lib/mod_factor/math.rb

Instance Method Summary collapse

Instance Method Details

#sigma_geometric(r, n) ⇒ Object



4
5
6
# File 'lib/mod_factor/math.rb', line 4

def sigma_geometric r, n
	(1 - r**(n+1))/(1 - r)
end