Newton Backward Interpolation Formula : #include<stdio.h> int main() { int n,i,j; printf("Enter the value of Number of inputs"); scanf("%d",&n); float x[n],y[n][n],a; for(i=1;i<=n;i++) { printf("Enter the value of x[%d] : ",i); scanf("%f",&x[i]); } for(i=1;i<=n;i++) { printf("Enter the value of y[%d] : ",i); scanf("%f",&y[i][1]); } printf("Enter the value of X whose approximate value you want"); scanf("%f",&a); int pc; pc=n; for(i=2;i<=pc;i++) { for(j=1;j<n;j++) { y[j][i]=y[j+1][i-1]-y[j][i-1]; ...
Comments
Post a Comment