lex,intn)\r/**/\rdoubley=0.0;\ry=((2*n+1)*pow(x,n))/(n*(n+1));\ra[0]=y;\ra[l]=y-(int)(y);\r/**/\r2.\rvoidfun(intaf],intb[],intc[])\r/**/EvaluationWarning:ThedocumentwascreatedwithSpire.PDFfor.NET.\rinti=N-l,j=O,k=O;\rwhile(i>=O&&j<M)\rif(a[i]<b[j])\r(\rc[k]=b[j];\rk++;j++;\r)\relse\r(\rc[k]=a[il;\rk++,i-,\r)\rwhile(i>=0)\r(\rc[k]=a[i];\rk++,i-,\r)\rwhile(j<M)\r(\rc[k]=b[j];\rk++;j++;\r)\r/**/\r)\r&11'\r1)\r/**/\rif(n==0)return1;\relseif(n==l)returnx;\relseif(n>l)\rreturn((2*n-l)*x-fun(x,n-l)-(n-1)*fun(x,n-2))/n;\r/**/\r2)\rintsearch(inta[])\r(\r1**1\rinti,maxl,max2;\rmax1=a[O]>a[l]?a[O]:a[1];\rmax2=a[0]<a[l]?a[0]:a[l];\rfor(i=2;i<N;i++)\r(\rif(afi]>maxl)\rmax2=max1;EvaluationWarning:ThedocumentwascreatedwithSpire.PDFfor.NET.\rmaxl=a[i];\r}\relseif(a[i]>max2)max2=a[i];\r)\rreturnmax2;\r/**/