# Ramanujan theta function

The Ramanujan theta function, $f$, is defined for $|ab|<1$ by $$f(a,b)=\displaystyle\sum_{k=-\infty}^{\infty} a^{\frac{k(k+1)}{2}} b^{\frac{k(k-1)}{2}}.$$