Fortran Programming
Numerical Methods
- Bisection Method
- Regula Falsi (False Position)
- Newton Raphson Method
- Secant method
- Newton Raphson – Non-Linear Equations
- Gauss Elimination Method
- Gauss Elimination Method (With Pivoting)
- Gauss Jordan Method
- Gauss Elimination – Determinant
- Gauss Jordan – Inverse Matrix
- Lagrange Interpolation
- Newton Divided Interpolation
- Newton Forward Interpolation
- Least Square Fitting
- Trapezoidal Rule
- Simpson 1/3rd Rule
- Simpson 3/8 Rule
- Euler’s Method
- Euler’s Modified Method
- Runge Kutta’s (2nd Order)
- Runge Kutta’s (4th Order)
PROGRAM gauss_jordan_inverse IMPLICIT NONE REAL::A(20,20),t INTEGER::i,j,n,k PRINT *, "============================================" PRINT *, "Program to find the inverse of a matrix using Gauss Jordon method - [BY - www.BottomScience.com]" PRINT *, "============================================" PRINT *,'GAUSS JORDAN' PRINT *,'NO. OF ROWS' READ(*,*)n PRINT *,'ENTER ELEMENTS' READ(*,*)((A(i,j),j=1,n),i=1,n) PRINT *,'YOUR MATRIX - ' DO i=1,n write(*,*)(A(i,j),j=1,n) END DO !CREATING AN IDENTITY MATRIX DO i=1,n DO j=1,n IF(i==j) THEN A(i,j+n)=1 ELSE A(i,j+n)=0 END IF END DO END DO !CONVERTING IN DIAGONAL DO i=1,n !I->ROWS DO j=1,n !J-> COLUMNS IF(i .ne. j) THEN t=A(j,i)/A(i,i) DO k=1,2*n A(j,k)=A(j,k)-(A(i,k)*t) END DO END IF END DO END DO DO i=1,n DO j=n+1,2*n A(i,j)=A(i,j)/A(i,i) END DO END DO PRINT *,'FINAL MATRIX - ' DO i=1,n write(*,*)(A(i,j),j=1,n) END DO PRINT *,'INVERSE MATRIX - ' DO i=1,n write(*,*)(A(i,j),j=n+1,2*n) END DO END PROGRAM
Fortran Programming
Numerical Methods
- Bisection Method
- Regula Falsi (False Position)
- Newton Raphson Method
- Secant method
- Newton Raphson – Non-Linear Equations
- Gauss Elimination Method
- Gauss Elimination Method (With Pivoting)
- Gauss Jordan Method
- Gauss Elimination – Determinant
- Gauss Jordan – Inverse Matrix
- Lagrange Interpolation
- Newton Divided Interpolation
- Newton Forward Interpolation
- Least Square Fitting
- Trapezoidal Rule
- Simpson 1/3rd Rule
- Simpson 3/8 Rule
- Euler’s Method
- Euler’s Modified Method
- Runge Kutta’s (2nd Order)
- Runge Kutta’s (4th Order)