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_eli_det
IMPLICIT NONE
REAL::A(20,20),k1,k2,c=1.
INTEGER::i,j,n,k
PRINT *, "============================================"
PRINT *, "Program to find the determinant of a matrix using Gauss elimination method - [BY - www.BottomScience.com]"
PRINT *, "============================================"
PRINT *,'GAUSS ELIMINATION - DETERMINANT'
PRINT *,'NO. OF ROWS'
READ(*,*)n
PRINT *,'ENTER ELEMENTS'
READ(*,*)((A(i,j),j=1,n+1),i=1,n)
PRINT *,'YOUR MATRIX - '
DO i=1,n
write(*,*)(A(i,j),j=1,n+1)
END DO
DO k=1,n-1
k1=A(k,k)
DO i=k+1,n
k2=A(i,k)/k1
DO j=k,n+1
A(i,j)=A(i,j)-(k2*A(k,j))
END DO
END DO
END DO
PRINT *,'UPPER TRIANGULAR MATRIX - '
DO i=1,n
write(*,*)(A(i,j),j=1,n+1)
END DO
PRINT *,'DETERMINANT'
DO i=1,n
c=c*A(i,i)
END DO
write(*,*)c
END PROGRAMFortran 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)