Ramanujan's constant

From Fōrmulæ wiki
Jump to: navigation, search

This page is the answer to the task Ramanujan's constant in the Rosetta Code.

Description (from Rosetta Code)

Calculate Ramanujan's constant (as described on the OEIS site) with at least 32 digits of precision, by the method of your choice.

Optionally, if using the 𝑒**(π*√x) approach, show that when evaluated with the last four Heegner numbers the result is almost an integer.


Using 100 precision digits:


Optional case