Ramanujan gave many fascinating formulas and approximations to pi. Using one of his examples, we can give its family. First, define the *fundamental units*,

These are involved in fundamental solutions to *Pell equations*. For example, for , it is {*x, y*} = {99, 13}, (see the values above), while for it is {*x, y*} = {1451, 110}. Using these solutions to Pell equations, then,

where,

Nice, isn’t it? The second to the last approximation is by Ramanujan which is accurate to 31 digits, while the last is by this author and is accurate to 42 digits. (*Can anyone find a nice expression for the next step?* ) The expression inside the log function is the exact value of,

where is the *Dedekind eta function*, and , , , , respectively.

The *fundamental discriminant* *d* = -4∙58 has *class number* *h*(d) = 2. Another one with the same class number is *d* = -4∙37. Hence, given,

then,

where the expression inside the log function is now the *absolute value* of the eta quotient at and .