Skip to content

pawel-czyz/ODE-Solvers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solver

A Python 3 package for solving computational physics problems. Implements:

  • Numerov ODE Solver
  • Runge-Kutta ODE Solver
  • 1D gradient descent optimisation
  • method for numerical derivatives calculation

Contains also various unit tests and examples, including:

  • 1D harmonic oscillator, solution in position basis
  • Lorentz attractor

Website: https://github.com/pawel-czyz/ODE-Solvers

Usage

To install dependencies (Matplotlib and NumPy):

$ make install

To run a harmonic oscillator example:

$ make quantum

To run a Lorenz system simulation example:

$ make lorenz

To run unit tests:

$ make test