Skip to main content

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:

  • numpy
  • matplotlib

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tautoolbox-0.95.1.tar.gz (117.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tautoolbox-0.95.1-py3-none-any.whl (122.2 kB view details)

Uploaded Python 3

File details

Details for the file tautoolbox-0.95.1.tar.gz.

File metadata

  • Download URL: tautoolbox-0.95.1.tar.gz
  • Upload date:
  • Size: 117.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for tautoolbox-0.95.1.tar.gz
Algorithm Hash digest
SHA256 420804d800f4015b889ab48b6227b9a22e6dcfaacd26bbc0b840e16707e3817d
MD5 ca3ffc138978d6ccbeb718375a99234d
BLAKE2b-256 1a43508bd12b8423a45adc6e738ce6113a695e7061df2950ce8e152b18e0f6e7

See more details on using hashes here.

File details

Details for the file tautoolbox-0.95.1-py3-none-any.whl.

File metadata

  • Download URL: tautoolbox-0.95.1-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.4

File hashes

Hashes for tautoolbox-0.95.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c65c8bca4e01427bd7412cb52910e8f5adb7b1cabf21737aa114b91e3fb91e5d
MD5 5cfd6ed1f4aa8a435433a558940a19f6
BLAKE2b-256 ce59afb1d683d6211b62d7efcbe08470601269a2e702bfe917fa3ee1adf7277d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page