Padé approximations of exponential (phi) functions
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
padexp
tests
.coveragerc
.travis.yml
LICENSE.md
README.md
setup.py

README.md

Padé approximations of exponential (phi) functions

Build Status Coverage Status ![Python version](https://img.shields.io/badge/python-2.7, 3.4-blue.svg?style=flat-square)

Exponential functions, in a general sense, are defined as

E_j(x) = ∑_k x^k/(k+j)!

So for j=0, this is the regular exponential.

The main application is to apply that exponential function to a matrix.

Here is a minimal example:

from padexp import Exponential
import numpy as np
e = Exponential(4) # to compute the functions E_j for 0 ≤ j ≤ 4
M = np.array([[1.,2.],[3.,4]])
e(M) # returns a list containing [E_0(M), E_1(M),...,E_4(M)]

This code is useful for exponential integrators, and is a port of the expint Matlab package.