Skip to content

Instantly share code, notes, and snippets.

View md-abdul-halim-rafi's full-sized avatar
🤓
There is no place like 127.0.0.1

Md Abdul Halim Rafi md-abdul-halim-rafi

🤓
There is no place like 127.0.0.1
View GitHub Profile
@md-abdul-halim-rafi
md-abdul-halim-rafi / nodejs-cicd-github-actions.md
Created August 27, 2023 15:12 — forked from danielwetan/nodejs-cicd-github-actions.md
Deploy Node.js to VPS using Github Actions

Deploy Node.js to VPS using Github Actions

Steps to deploy Node.js to VPS using PM2 and Github Actions

1. Clone repo to VPS folder

@md-abdul-halim-rafi
md-abdul-halim-rafi / input.txt
Created October 27, 2019 07:52
Jacobi and Gauss-Seidal System solving using Fortran
0. 0. 0. 0. 0.
4. 1. 1. 0. 1. 6.
-1. -3. 1. 1. 0. 6.
2. 1. 5. -1. -1. 6.
-1. -1. -1. 4. 0. 6.
0. 2. -1. 1. 4. 6.
@md-abdul-halim-rafi
md-abdul-halim-rafi / input.txt
Last active October 27, 2019 06:43
Newton Forward extrapolation using Fortran
2000 131.6 146.6
2001 134.1 146.0
2002 136.6 145.3
2003 139.0 144.6
2004 141.3 144.1
2005 143.4 143.5
@md-abdul-halim-rafi
md-abdul-halim-rafi / nbm.f90
Last active October 27, 2019 06:18
Newton Backward extrapolation using Fortran
program nbm
implicit none
integer, parameter :: n = 11
integer :: i, j, k
real :: a, b, y(n), fy(n), d(20,20), gap, xp1, xp2
open(unit = 2, file = 'output.txt')
a = -2.0; b = 2.0; k = n; xp1 = -1.; xp2 = 1.
y(1) = a; y(n) = b
@md-abdul-halim-rafi
md-abdul-halim-rafi / richardson.f90
Created October 27, 2019 06:16
Richardson Extrapolation using Fortran
program richardson
implicit none
integer, parameter :: n = 5
integer :: i, j
real :: xo, h, ri(n,n), l, k, m, f, exact
h = 0.2; xo = 2.0; k = n; m = 0
exact = (xo+1)*exp(xo)
do i = 1, n
@md-abdul-halim-rafi
md-abdul-halim-rafi / input.txt
Created October 22, 2019 16:25
Lagrange Interpolation using Fortran
1.0 181.0
2.0 155.0
3.0 161.5
4.0 183.0
6.0 214.1
10.0 319.0
@md-abdul-halim-rafi
md-abdul-halim-rafi / input.txt
Last active October 22, 2019 16:16
Newton Divided Difference Interpolation using Fortran
1.0 181.0
2.0 155.0
3.0 161.5
4.0 183.0
6.0 214.1
10.0 319.0
Material(
elevation: 5.0,
shadowColor: grey,
borderRadius: BorderRadius.circular(15.0),
child: Container(
height: MediaQuery.of(context).size.width * 0.25,
width: MediaQuery.of(context).size.width * 0.25,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(15.0)
),
@md-abdul-halim-rafi
md-abdul-halim-rafi / numerical_differentiation.f90
Last active October 20, 2019 16:34
Numerical Differentiation using Trapezoidal, Simpson's 1/3, Simpson's 3/8 and Weddle's Rule
program numerical_differentiation
implicit none
integer :: i, n
real :: a, b, h, x(31), y(31), func, exact
a = 0.0; b = 2.4; n = 31; exact = log(169./25.)
h = (b-a)/n
x(1) = a; x(n) = b
y(1) = func(a); y(31) = func(b)
do i = 2, n-1
@md-abdul-halim-rafi
md-abdul-halim-rafi / romberg.f90
Created October 20, 2019 13:34
Romberg Integration using Fortran
program ques_03
implicit none
integer :: i, j, k, n, l
real :: a, b, exact, x(0:100), y(0:100), h, tr, rom(20,20)
exact = 0.0887553; n = 5!n = 5 decimal places
a = 0.0; b = 3.1416/4! a & b are lower and upper limit respectively
do i = 1, n
l = 2**(i-1)