ad3ller / numerov

A basic implementation of the Numerov method to solve the Schrödinger equation for a 1/r potential

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Numerov

A basic implementation of the Numerov method to solve the Schrodinger equation for a 1/r potential

Install

download source

git clone "https://github.com/ad3ller/numerov"
cd ./numerov

cython build (optional)

The Numerov method can be sped up significantly (x10) with cython.

python setup.py build_ext -i

install

python setup.py install

run tests (optional)

Requires cython build, sympy and pytest.

pytest

Docs

>>> import numerov
>>> numerov.radial_integral(12, 5, 15, 4, step=0.0001)
4.573187231242028

See notebooks.

About

A basic implementation of the Numerov method to solve the Schrödinger equation for a 1/r potential

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Jupyter Notebook 94.2%Language:Python 3.3%Language:Cython 2.5%