Ellipse circumference by nn(notogawa)

float x,n,b;main(a){for(;~scanf("%d%f",&a,&b);printf("%.f\n",x))for(n=8e3;n-=2;)x=a*6.2832+(n-4+3/n)/n*(1-b*b/a/a)*x;}

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

download

return to the top page