## Trapezoidal Rule for Numerical Integration – Python Code and Tutorial

In this blog post, I will explain how to use the trapezoidal rule for numerical integration along with Python code and equations. The…

## Geometry Optimization Algorithms and implementations using Quantum ESPRESSO

So, I’ve been using Quantum ESPRESSO (QE) for a while now. And it’s relaxation (optimization) functionality as well. Now, although I had a…

## Determinant of the Hilbert Matrix – C PROGRAM

I have recently written a post that calculates the determinant of a given square matrix using the Gaussian elimination technique. In the last…

## Chi Square Minimization using initial guesses – C PROGRAM

Method # 1: Chi-square minimization Fitting a dataset (xi,yi,si) using a curve y=f(x)=a*exp(bx), where values of the parameters a and b are unknown,…

## Calculating Value of Pi using Monte Carlo Technique – C PROGRAM

Recently in my Numerical Techniques class I learnt a Monte Carlo technique to calculate the value of Pi . The procedure is really…

## Central Limit Theorem Demonstration – C PROGRAM

One of the fundamental theorems of probability is the Central Limit Theorem. This theorem says that if is the sum of mutually independent…

## Acceptance-Rejection Method (Rejection Sampling) for generating distributions- C PROGRAM

Acceptance-Rejection method can be used to produce random numbers following a certain probability density function. This is done by generating random numbers following…

## Polynomial Fitting – C PROGRAM

Okay, so here I am sharing a code for fitting a polynomial to a given set of data-points using the Least Squares Approximation Method(Wikipedia).…