int calc()
{
L1 =(short)((L/4)+1);
L2 =(short)(L1+1);
N =((short))(L/1.39794+1) ;
short s[]=new short[L2+2];
short w[]=new short [L2+2];
short v[]=new short [L2+2];
short q[]=new short[L2+2];
int k;
for(k=0 ; k<L2+2 ; k++)
s[k]=w[k]=v[k]=q[k]=0;
w[0]=16*5; v[0]=4*239;
for (k=1 ; k<=N ; k++){
ldiv(w,(short)25,w);
ldiv(v,(short)239,v);ldiv(v,(short)239,v);
lsub(w,v,q);ldiv(q,(short)(2*k-1),q);
if((k%2)!=0)
ladd(s,q,s);
else
lsub(s,q,s);
}
printresult(s);
return 0;
}
void ladd(short a[] , short b[] , short c[])
{
short i,cy=0;
for(i=L2 ; i>=0 ; i--){
c[i]=(short)(a[i]+b[i]+cy);
if(c[i]<10000)
cy=0;
else{
c[i]=(short)(c[i]-10000);
cy=1;
}
}
}
void ldiv(short a[] , short b, short c[])
{
short i;
long d,rem=0;
for(i=0;i<=L2;i++){
d=a[i];
c[i]=(short)((d+rem)/b);
rem=((d+rem)%b)*10000;
}
}
void printresult(short c[])
{
short i;
System.out.print(" "+c[0]+".");
for(i=1 ; i<L1 ; i++) System.out.print(c[i]);
}