PySolverKit
A compact Python library that brings classical numerical methods to life — root finding, interpolation, differentiation, integration, ODE solvers, linear systems, and 2D FEM for Poisson problems.
Features
- Function arithmetic — add, subtract, multiply, and compose built-in function types (
Polynomial,Sin,Cos,Tan,Exponent,Log) with plain Python operators - Root finding — bisection, Newton-Raphson, secant, Regula Falsi, and modified Newton methods
- Interpolation — Lagrange and Newton divided-difference forms (forward/backward difference tables included)
- Differentiation — forward, backward, and central finite-difference schemes; set an exact derivative for Newton-type solvers
- Integration — rectangular, midpoint, trapezoidal, Simpson's, and Gauss-Legendre quadrature
- ODE solvers — Euler, Runge-Kutta (orders 1–4), Taylor series, trapezoidal, Adams-Bashforth/Moulton, and predictor-corrector methods for first-order IVPs; shooting and finite-difference methods for second-order BVPs
- Linear algebra —
VectorandMatrixwith arithmetic operations, andLinearSystemwith Gaussian elimination and Gauss-Jacobi/Seidel iterative solvers - 2D FEM —
FEM2Dfor Poisson equations on rectangular domains with Dirichlet boundary conditions
Quick start
import math
from pysolverkit import Polynomial, Sin, RootFindingMethod, IntegrationMethod
# Root finding
f = Polynomial(-6, 14, -7, 1) # x³ − 7x² + 14x − 6
root = f.root(RootFindingMethod.BISECTION, a=0, b=1, TOLERANCE=1e-6)
# Integration
g = Sin(Polynomial(0, 1)) # sin(x)
area = g.integrate(0, math.pi, method=IntegrationMethod.SIMPSON, n=100)
Documentation
Full API reference, detailed usage examples, and a method selector reference are in docs/README.md.
Running tests
python3 -m unittest discover -s tests -v
Contributing
Contributions are welcome! To get started:
- Fork the repository and create a feature branch.
- Add or update tests in
tests/tests.pyfor any new behaviour. - Ensure all tests pass:
python3 -m unittest discover -s tests -v - Open a pull request with a clear description of the change.
Metadata
Release files for pysolverkit 0.1.1
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 | |
|---|---|---|---|---|
| pysolverkit-0.1.1.tar.gz | 31.3 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pysolverkit-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 53.9 kB
Release files / pysolverkit-0.1.1.tar.gz
| Download URL | pysolverkit-0.1.1.tar.gz |
|---|---|
| Size | 31.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
94b7d7beb895868573ddfc132a9fb39636825e6ef242db143d844dd35dccfce0
|
|
BLAKE2b-256 checksum How to use checksums |
8655f55a43e2e2950d7e9021fa3c38f7fa166f4f8c31d09df37c33f7de1390c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 22, 2026.
Transparency logRelease files / pysolverkit-0.1.1-py3-none-any.whl
| Download URL | pysolverkit-0.1.1-py3-none-any.whl |
|---|---|
| Size | 22.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e52158932ee24a9acfa5842a74e84f753534057bbd9b6f7c502b7c87e7c3b5f7
|
|
BLAKE2b-256 checksum How to use checksums |
c4be79da52231161784b7bdff549e896df6de0cc768a4d8d69c38201504e0565
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 22, 2026.
Transparency logSecurity for pysolverkit 0.1.1
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for pysolverkit-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 22, 2026.
Transparency logA 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.