Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

199 Waleed Ali Taylor Expansion

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

#include<stdio.

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);
}

You might also like