How to Find the Line of Best Fit using the Least Square Method

The Line of Best Fit helps us find the best fitting line for a set of points(x,y). In experiments, where x and y have a linear relationship, this can help us draw more accurate results. Let us how to create a line of best fit from the given data.

How to Find the Roots of a Quadratic Equation

Fomula for Roots of a Quadratic Equation
Solving a quadratic equation for real and complex solutions is at the core of mathematics. Let us see how carry out this process in Fortran.

How to Interpolate a Function at a Point using Lagrange Polynomials

The Lagrange polynomials are used to find the value of a function at a point when we know its values at some other points. Let us see how to interpolate a function at a point this way.

How to Solve a System of Linear Equations using the Gauss-Seidal Method

The Gauss-Seidal Method is another iterative method used to solve a system of linear equations. It is also known as the method of successive displacement.It converges only if the matrix is strictly diagonally dominant or symmetric and positive definite. Let us see how to use this method to solve linear equations.

How to Solve a System of Linear Equations of n Variables using the Gauss Elimination Method

Gaussian Elimination is an algorithm to solve a system of linear equations of n variables. It uses elementary operations to find the solution to the system of linear equations. It is an efficient method to find the determinant and inverse of a matrix as well. In this program, we will learn how to solve a system of equations using this method. We will also learn how to calculate the determinant of the n x n matrix used in the process.

How to Find the Definite Integral of a Function Using the Trapezoidal Rule

The trapezoidal rule is one of the easiest ways to find a definite integral. It belongs to the class of formulas called Newton-Cotes formulas which evaluate the integrand at equally spaced points. The trapezoidal rule is extremely accurate for periodic functions when they are integrated over their periods. Let us see how to evaluate a definite integral using the trapezoidal rule.

How to Use the Arithmetic Assignment Statement

There are different types of assignment statements in Fortran. The arithmetic assignment statement gets confusing especially when you see statements such as i=i+1. Let us see how to use this statement correctly.