Friday, 8 May 2015

Numerical Analysis

Taylor Series Code

#include<conio.h>
#include<stdio.h>
void main(void)
{
clrscr();
float x=4.0,h=2.0;
float a=125.0,b=74.0,c=30,d=6.0;
float f;
printf("\n Find Talyor Series: ");
f=(a)+(b*h)+((c*h*h)/2.0)+((d*h*h*h)/6.0);
printf("\nAns %f",f);
getch();
}

No comments:

Post a Comment