This repo documents my attempts to learn computational physics. This is the current list of tasks we have figured out how to do and problems we have solved
- Poisson's equation
$\nabla^2 V = -\frac{1}{\epsilon_0}\rho$ - Wave equation
$\frac{\partial^2 y}{\partial^2 t} =v^2\frac{\partial^2 y}{\partial^2 x}$ - Schrödinger's equation
$-\frac{\hbar}{2m}\nabla^2 \psi +V(x) \psi = E \psi$ - Tripple pendulum
Partial differential Equations are typically solved via the finite difference method. For most of the one's we have solved, we went about them by looking up formulae. In practice you can derive a numerical formula for the equation at hand. Typically, for a linear pde, it is of the form
Where
In 2 dimensions, which is called Laplace's equation. then for any given partial derivative in the equation you can write it as its forward difference
where the indices