Home / Tag Archives: interpolation

Tag Archives: interpolation

C program to Implement Least Square Method

Write a C Program to Implement Least Square Method #include<stdio.h> #include<math.h> #include<conio.h> #define MAX 10 int main() {     int i,n;     float a0,a1;     float x[MAX],y[MAX],sumx=0.0,sumy=0.0,sumxy=0.0,sumxsq=0.0;     printf(“***Least square method***” );     printf(“\nInput the number of data points:”);     printf(“\nn=”);     scanf(“%d”,&n);     printf(“Enter the data sets one after …

Read More »