p=r=b=m=1 s=y=2 q=3 3000.times{((q+=s)*(b*=2)-(p+=r)*y*=2)*2*m>q&&[b+=m=-m,r=p-r,s=q-s]} print"0.",p*10**1000/q
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page