legendrefdnum
is a Python 2.x module for solving Sturm-Liouville problems of the type
It has been proved to be exponentially convergent for
The module was developed based on the algorithm published in the article Volodymyr L. Makarov, Denys V. Dragunov, Danyil V. Bohdan. Exponentially convergent numerical-analytical method for solving eigenvalue problems for singular differential operators. A preprint of this article is available from http://arxiv.org/abs/1309.5795.
legendrefdnum
comes extensively commented and with example code. You don't have to understand the FD-method to use legendrefdnum
.
The following modules are mandatory dependencies: numpy
, scipy
, matplotlib
. Having mpmath
installed is optional but highly recommended for calculations with dense meshes (see legendrepqwrappers.py
for an explanation).
To run legendrefdnum
on Ubuntu 12.04 or later do the following:
-
Clone the GitHub repository.
-
Execute the command
sudo apt-get install python-numpy python-scipy python-mpmath python-matplotlib
in the terminal. -
Run
example1.py
from the cloned repository to make sure everything works.
GNU LGPLv2.1+