David R. Pugh bio photo

David R. Pugh

A Data Scientist at KAUST Core Labs and Associate Fellow with the Institute of New Economics Thinking (INET) at University of Oxford.

Email Twitter LinkedIn Github Stackoverflow

pyCollocation

Overview

Python package for solving initial value problems (IVP) and two-point boundary value problems (2PBVP) using the collocation method with various basis functions. Currently I have implemented the following basis functions:

The source code for the pyPWT package is hosted on GitHub.

Installation

Assuming you have pip on your computer (as will be the case if you’ve installed Anaconda) you can install the latest stable release of pycollocation by typing

    $ pip install pycollocation

at a terminal prompt.

Example notebooks

Economics

There are a number of example notebooks that demonstrate how to use the library to solve seminal models in the economics literature.

Physics

More notebooks will be added in the near future (hopefully!)