#include<stdio.h>
#include<conio.h>
#include<math.h>
double x,y,h,a,b,s,k,c,d,eps,ab,vidn;
int i,n,q,p,e,m,g;
void main()
{
clrscr();
printf("Vvedid A i B\n");
scanf("%lf",&a);
scanf("%lf",&b);
printf("\nVvedit N\n");
scanf("%d",&n);
printf("\nVvedit tochnist\n");
scanf("%lf",&eps);
h=(b-a)/n;
for(i=0;i<n;i++)
{
x=a+i*h;
y=asin(x);
s=0;q=2;
c=x;d=1;
k=x;p=2;
m=1;e=1;
g=0;
while (fabs(c)>eps)
{
s=s+c;
d=d*q;
k=pow(x,(2*p-1));
c=k*e*1.0/d*(2*p-1)*m*1.0;
e=e*(2*p-1);
m=-m;
q=q+2;
p=p+1; g++;
}
ab=fabs(s-y);
if (ab!=0) {vidn=fabs(ab/y);}
else vidn=0;
printf("x=%lf;y=%lf;s=%lf;l=%d;abs=%lf;vidn=%lf;\n",x,y,s,g,ab,vidn);
}
getch();
}