Skip to content

Instantly share code, notes, and snippets.

@mindbound
Created September 8, 2012 06:59
Show Gist options
  • Save mindbound/3672446 to your computer and use it in GitHub Desktop.
Save mindbound/3672446 to your computer and use it in GitHub Desktop.
Euler's False Logarithmic Series
from sympy.mpmath import *
fls = lambda a, x: nsum(lambda n: (1 / (a ** n)) * nprod(lambda k: 1 - x * (a ** -k), [0, n - 1]), [1, inf])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment