You are on page 1of 1

BMS INSTITUTE OF TECHNOLOGY AND MANAGEMENT

Course Name: Complex Analysis, Probability and Statistical Methods Course Code : 18MAT41
Course Coordinator : Mrs. Karabi Sikadar Sem: IV Academic Year : 2021-22
Poster Presentation on Curve Fitting Method
Preseneted By: CHANDHANA H N(1BY20CS042)

Introduction : It is a mathematical procedure for finding the best fitted Code:


curve, to the given set of points x and y, by minimizing the sum of #include<stdio.h>
#include<conio.h>
squares of the offsets of the points from the curve. #include<math.h>
int main()
Definition : Curve fitting is the {
process of constructing a curve int n,i,x[20],y[20],sumx=0,sumy=0,sumxy=0,sumx2=0;
float a,b;
or mathematical function, which
printf("\n C program for Linear Curve Fitting \n ");
will fit best to a series of data printf("\n Enter the value of number of terms n:");
points possibly subject to scanf("%d",&n);
constraints. Curve fitting can involve printf("\n Enter the values of x:\n");
for(i=0;i<=n-1;i++)
either interpolation, {
where an exact fit to the data is scanf(" %d",&x[i]);
required, or smoothing, in which a }
printf("\n Enter the values of y:\n");
"smooth" function is constructed for(i=0;i<=n-1;i++)
that approximately fits the data. {
scanf("%d",&y[i]);
Formulae: }
The first degree Real world Applications: It is widely used to make scatter for(i=0;i<=n-1;i++)
polynomial plots easier to interpret and is associated with regression {
analysis. sumx=sumx +x[i];
equation is sumx2=sumx2 +x[i]*x[i];
It is used to predict the behavior of dependent variables.
Y=ax + b sumy=sumy +y[i];
•quantify a general trend of the measured data sumxy=sumxy +x[i]*y[i];
Is a line with slope •extract meaningful parameters from the learning curve }
a. •summarize the relationships among two or more variables a=((sumx2*sumy -sumx*sumxy)*1.0/(n*sumx2-sumx*sumx)*1.0);
The normal Curve fitting is one of the most powerful and most widely b=((n*sumxy-sumx*sumy)*1.0/(n*sumx2-sumx*sumx)*1.0);
equation are: printf("\n\nThe line is Y=%f +%f X",a,b);
used analysis tools in Origin.
return(0);
∑y = a∑x +nb They are used in architecture to design arches in buildings }
∑xy = a∑x2+ b∑x and cooling towers in power plants.

You might also like