199 Waleed Ali Taylor Expansion
199 Waleed Ali Taylor Expansion
199 Waleed Ali Taylor Expansion
h>
int main()
{
float x=0;
int n=0;
float a=1,b=1,c=1;
float sum=1;
printf("enter the value of x and n , then the program will calculate the
answer of tayler expansion\n");
scanf("%f",&x);
scanf("%d",&n);
x=x*x;
while (a<=n)
{
b=a;
while(b>1){
c=c*b*(b-1);
b=b-2;
}
sum=sum+(x/c);
c=1;
a++;
}
printf("here is ur answer\n");
printf("%f",sum);
scanf("%d",b);
}