Provides a variety of numerical inversion methods for the inverse Laplace transform
Project description
Numerical inversion of Laplace transform
1.Use the following statement to import
from inverselap import inverse
One-dimensional Laplace inversion
Take a one-dimensional function as an example
def fs_1d(s):
return 1/(s+1)
2.1 method Gaver-Stehfest
Use the following statement for inversion: inverse.GS_1d(f,t,M), f means functon, t meanstime parameter, M means the number of nodes, M is a positive even number while 14, 16 and 18 are recommended
inverse.GS_1d(f,1,18)
2.2 method Euler
Use the following statement for inversion: inverse.Euler_1d(f,t,M), f means functon, t meanstime parameter, M means the number of nodes, M is a positive number while 17 and 19 are recommended
inverse.Euler_1d(fs_1d,1,19)
2.3 method Talbot
Use the following statement for inversion: inverse.Talbot_1d(f,t,M), f means functon, t meanstime parameter, M means the number of nodes, M is a positive number while 21 is recommended
inverse.Talbot_1d(fs_1d,1,21)
Two-dimensional Laplace inversion
Take a rwo-dimensional function as an example
def fs_2d(s1,s2):
return 1/(s1+1)/(s2+2)
3.1 method series
Use the following statement for inversion: inverse.series_2d(f,t1,t2,N,c1,c2), f means functon, t1 and t2 mean time parameter, N means the number of nodes, N is a positive number while 64 and 128 is recommended, c1 and c2 should be larger than the s1 and s2 where the value fs_2d(s1,s2) is infinite if possible.
inverse.series_2d(fs_2d,1,1,128,0,-1)
3.2 method partial
Use the following statement for inversion: inverse.Partial_2d(f,t1,t2,N,par1,par2), f means functon, t1 and t2 mean time parameter, N means the number of nodes, N is a positive number while 64 and 128 is recommended, alpha1 and alpha1 should be the s1 and s2 where the value fs_2d(s1,s2) is infinite if possible.
inverse.Partial_2d(fs_2d,1,1,128,-1,-2)
3.3 mtehod Talbot
Use the following statement for inversion: inverse.Talbot_2d(f,t1,t2,M), f means functon, t1 and t2 mean time parameter, M means the number of nodes, M is a positive number while 21 is recommended
inverse.Talbot_2d(fs_2d,1,1,18)
3.4 mtehod Euler
Use the following statement for inversion: inverse.Euler_2d(f,t1,t2,M), f means functon, t1 and t2 mean time parameter, M means the number of nodes, M is a positive number while 17 and 19 are recommended
inverse.Euler_2d(fs_2d,1,1,21)
3.5 method epsilon
Use the following statement for inversion: inverse.epsilon(f,t1,t2,alpha1,alpha2), f means functon, t1 and t2 mean time parameter, alpha1 and alpha1 should be the s1 and s2 where the value fs_2d(s1,s2) is infinite if possible.
inverse.inverse.epsilon(fs_2d,1,1,-1,-1)
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 inverselap-1.3.2.tar.gz.
File metadata
- Download URL: inverselap-1.3.2.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40c427392986986ff8f3f9ed8a0580b0e4675ad73711ef64346ebcd850abcf2e
|
|
| MD5 |
1f318ed14c868e81d534faa6ba8d7cff
|
|
| BLAKE2b-256 |
4af3fb6178d715a7ad1d287d275afaa4282ab9d26f7fa4e0c8f894383dd08f06
|
File details
Details for the file inverselap-1.3.2-py3-none-any.whl.
File metadata
- Download URL: inverselap-1.3.2-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ef5f177889a811b85f93108d5a617872de2a1ea223f2503c3534257f26d607d
|
|
| MD5 |
c18b7838437e64ad7546c0b3bb13f167
|
|
| BLAKE2b-256 |
7f5c8bdb4fe63702bbe3430bb1c1a23934c111f027b7c8737ce11be72f3fa128
|