Skip to content

Instantly share code, notes, and snippets.

Created May 29, 2010 02:27
Show Gist options
  • Save anonymous/417972 to your computer and use it in GitHub Desktop.
Save anonymous/417972 to your computer and use it in GitHub Desktop.
def a(x, n);t=0;for c in 1..n;m=c%2==0?-1:1;d=c*2-1;t+=m*(x**d/d);end;t;end;for i in (1..12); puts 4*(4*a(0.2,i)-a(1.0/239,i)); end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment