## Sorting-descending(Lab Write-Up with Algorithm and Flowchart)

Here is the Lab Write Up for a C++ Program for sorting a given data in descending order. The Write-Up consists of Algorithm,…

Read More

## Sorting-ascending (Lab Write-UP with Algorithm and Flowchart)

Here is the Lab Write Up for a C++ Program for sorting a given data in ascending order. The Write-Up consists of Algorithm,…

Read More

## Linear Search (Lab Write-Up with Algorithm and Flowchart)

Here is the Lab Write Up for a C++ Program to search a list(Linear Search). The Write-Up consists of Algorithm, Flow Chart, Program,…

Read More

## C++ Program to locate a no. in a list

//To locate a number in a list #include <iostream> using namespace std; int main() { int i,n; double x; cout<<"Enter the size of…

Read More

## C++ Program for Exponential Fitting (Least Squares)

//Exponential Fit #include<iostream> #include<iomanip> #include<cmath> using namespace std; int main() { int i,j,k,n; cout<<"\nEnter the no. of data pairs to be entered:\n"; //To…

Read More

## Why can’t we use absolute values of Errors? (Least Squares Method)- Curve Fitting

The answer is three fold: If we look at the above image and the data points we notice that some of the errors…

Read More

## Curve Fitting (Least Squares method)- Presentation (Slides)

Curve fitting is the process of constructing a curve, or mathematical function, that has the best fit to a series of data points,…

Read More

## C++ Program for Polynomial Fit (Least Squares)

//Polynomial Fit #include<iostream> #include<iomanip> #include<cmath> using namespace std; int main() { int i,j,k,n,N; cout.precision(4); //set precision cout.setf(ios::fixed); cout<<"\nEnter the no. of data pairs…

Read More

## C++ Program to Linear Fit the data using Least Squares Method

//Linear Fit #include<iostream> #include<iomanip> #include<cmath> using namespace std; int main() { int i,j,k,n; cout<<"\nEnter the no. of data pairs to be entered:\n"; //To…

Read More

## C++ Program for Gauss-Elimination for solving a System of Linear Equations

//Gauss Elimination #include<iostream> #include<iomanip> using namespace std; int main() { int n,i,j,k; cout.precision(4); //set precision cout.setf(ios::fixed); cout<<"\nEnter the no. of equations\n"; cin>>n; //input…

Read More