Ellipse circumference by nn

for(;[a,b]=readline(n=1).split(' ');print(6.2832*c+.5|0))for(b/=c=a;b<a*n;n+=2)c-=a*=(1-b*b)*n/~n/~n,a*=n

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page