A package that implements Lanczos' Tau method to solve differential problems
Project description
Tau Toolbox
AUTHORS:
Paulo B. Vasconcelos
Centro de Matemática - Universidade do Porto
Email: pjv@fep.up.pt
José M. A. Matos
Centro de Matemática - Universidade do Porto
Email: jma@isep.ipp.pt
José A. O. Matos
Centro de Matemática - Universidade do Porto
Email: jamatos@fep.up.pt
Nilson Lima
REFERENCE:
Solving differential eigenproblems via the spectral Tau method
NUMERICAL ALGORITHMS
DOI: https://doi.org/10.1007/s11075-022-01366-z
SOFTWARE REVISION DATE:
Version 0.95 : 2025-04-10
Tau Toolbox is a Python library for the solution of integro-differential problems based on the Lanczos' Tau method.
Tau Toolbox is free software released under the GNU Lesser General Public License version 3 (LGPLv3). A copy of the License is enclosed in the project.
Installation
Just clone the Tau Toolbox repository following
git clone https://bitbucket.org/tautoolbox/taupy.git.
Tau Toolbox can also be obtained at https://cmup.fc.up.pt/tautoolbox/.
Tautoolbox requires Python 3.10 together with the following modules:
numpymatplotlib
Help
A Tau Toolbox User Guide will be made available soon, along with a set of Technical Reports.
Support
The project supports the tool in the sense that reports of errors or poor performance will gain immediate attention from the developers.
Getting started
The best way to get started is by using the many examples provided.
Tackle your problems with ease:
- To solve the ordinary differential problem $y''(x)+y(x)= 0$ in $[0,2\pi]$ with $y(0)=1$ and $y'(2\pi)=0$, just type:
import tautoolbox as tau
import numpy as np
from tautoolbox.functions import diff, linspace
import matplotlib.pyplot as plt
equation = lambda x, y: diff(y, 2) + y
domain = [0, 2 * np.pi]
conditions = lambda y: [y(0) - 1, y.diff(1, 2 * np.pi)]
problem = tau.problem(equation, domain, conditions)
yn = tau.solve(problem)[0]
x = linspace(yn)
plt.plot(x, yn(x))
plt.show()
You can find more examples in the examples folder.
Notice that we refer sometimes to taupy, this is not to be confused with the taupy package.
This reference, that we have used internally since 2021, refers to the Python implementation of the Matlab/Octave Tautoolbox.
There are some small differences between both implementations but the general structure is the same, and as long as possible, the syntax is also the same adapted to the syntax of each language.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tautoolbox-0.95.0.tar.gz.
File metadata
- Download URL: tautoolbox-0.95.0.tar.gz
- Upload date:
- Size: 117.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
446cffc4f011ccb01be65892cdb434f3daca03aa7478f28280e977692003f2f9
|
|
| MD5 |
2aa40c04d5ddc0a6fd0c4c7313425c7b
|
|
| BLAKE2b-256 |
8a7d047515488dedb7194b620516cbe21bd749dcf9ac65309549ce040abe8ec0
|
File details
Details for the file tautoolbox-0.95.0-py3-none-any.whl.
File metadata
- Download URL: tautoolbox-0.95.0-py3-none-any.whl
- Upload date:
- Size: 122.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7741eceb1751b412d9bdd034326ab0b064bde2d5d9c2ae6705bfc3aba172512a
|
|
| MD5 |
28241f4ad0d2515b3843967d604ccdd9
|
|
| BLAKE2b-256 |
7312ae31a8cd69dfeff0042d17686c8e014603afe63bc9be22ea59bf6a3aae2d
|