stemre
A Python library for numerical analysis, simulation and data fitting in Science, Technology, Engineering and Mathematics (STEM).
Installation
Use the package manager pip to install the Stemre library.
pip install stemre
Usage
The library is imported into a Python session by running the following import statement.
import stemre as stm
Examples
We will give a few examples that will demonstrate the use of the Stemre library. Before that, the following libraries need to be installed.
import numpy as np
import sympy as sym
import pandas as pd
import matplotlib.pyplot as plt
Differentiation of parametric equations
t = sym.symbols('t')
x = t ** 3 - 3 * t ** 2
y = t ** 4 - 8 * t ** 2
result = stm.par_diff(f = x, g = y,
dependent_variable = t, n = 3)
stm.disp(x = x, y = y, dfdx = result)
Richardson extrapolation
pd.set_option('display.precision', 14)
f = lambda x: x ** 2 * np.exp(x)
x, n, h = 2.5, 5, 0.001
_, df, dx = stm.richardson(f, x, n, h)
stm.disp(Table = df, Result = dx)
Gauss-Legendre quadrature integration
f = lambda x: 13 * (x - x ** 2) * np.exp(-3 * x/2)
a, b, n = 0, 4, 15
result = stm.gauss_legendre(f, a, b, n)
stm.disp(Result = result)
Initial value problems
ode_function = 'y - t^2 + 1'
exact_solution = '(t+1)^2 - 1/2 * exp(t)'
table, figure = stm.ivps(ode_equations = [ode_function, exact_solution],
time_span = [0, 3],
initial_y = 0.5,
steps_stepsize = ['h', 0.12],
ivp_method = 'rk4',
show_iterations = None,
decimal_points = 12)
display(table, figure)
Support
For any support on any of the functions in this library, send us an email at: stemresearchs@gmail.com. We are willing to offer the necessary support where we possibly can.
Roadmap
Future releases aim to make Stemre a full-featured numerical analysis, simulation and data fitting library for learning in STEM (Science, Technology, Engineering and Mathematics).
Contributing
To make Stemre a successful library while keeping the code easy. We welcome any valuable contributions towards the development and improvement of this library.
For major changes to the library, please open an issue with us first to discuss what you would like to change and we will be more than willing to make the changes.
Authors and acknowledgement
We are grateful to the incredible support from our developers at Stem Research.
License
Metadata
Release files for stemre 0.0.17
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| stemre-0.0.17.tar.gz | 28.4 kB | Without provenance | Details for stemre-0.0.17.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stemre-0.0.17-py3-none-any.whl | Python 3 | none | any | Details for stemre-0.0.17-py3-none-any.whl |
Total release size: 67.0 kB
Release files / stemre-0.0.17.tar.gz
| Download URL | stemre-0.0.17.tar.gz |
|---|---|
| Size | 28.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e51b906d0d5b7a40a83c83c4573fd82434f832ec28027a772e8400e263bcf4b1
|
|
BLAKE2b-256 checksum How to use checksums |
22753ab527bc7fe6ace7785d9865cc9fdb0ca045869bb173b340a42af5edfb4c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
|
Release files / stemre-0.0.17-py3-none-any.whl
| Download URL | stemre-0.0.17-py3-none-any.whl |
|---|---|
| Size | 38.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
41f790ba4d27f75d3b2cc63bc55d62fa07c4cbbeb6d60f6c7093c792066b5657
|
|
BLAKE2b-256 checksum How to use checksums |
befdabfa199ce38743ea479ebd07806276ded092a1c8e104c6b616036342eee5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
|
Security for stemre 0.0.17
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.