Skip to main content

NuMethods

Numerical methods for engineers in Python – built to be studied and understood, not just used.

About

This library implements classical numerical methods used in engineering: root finding, linear systems, optimization, integration, differential equations, and more. The goal is a personal reference that surfaces the intermediate steps that production libraries hide – iteration history, convergence behavior, per-step error estimates – so that the method itself remains visible and inspectable.

Production libraries such as SciPy solve efficiently but return only the final result. NuMethods is a companion for anyone who wants to understand how a method works, not just that it works.

NumPy is the single low-level dependency. All numerical methods are built strictly on top of it.

Installation

pip install numethods
uv add numethods

Quick Start

import numpy as np
from numethods.roots.bracketing_methods import bisection

# Terminal velocity of a falling parachutist (drag coefficient unknown)
def f(c):
    return (667.38 / c) * (1 - np.exp(-0.146843 * c)) - 40

result = bisection(f, xl=12, xu=16, verbose=True)
# ------------------------------------------------------------------------------------------------
#                                   Bisection method iterations
# ------------------------------------------------------------------------------------------------
#   i |                   xl |                   xu |                   xr |                   ea
#   1 | 12.0000000000000000 | 16.0000000000000000 | 14.0000000000000000 |   0.1428571428571429
#   2 | 14.0000000000000000 | 16.0000000000000000 | 15.0000000000000000 |   0.0666666666666667
#   ...

print(result.solution)   # 14.780208468437195
print(result.nit)        # number of iterations
print(result.nfev)       # number of function evaluations

# Full iteration history is available
for step in result.history:
    print(step.i, step.sol, step.ea)

Topics

Currently implemented: bracketing methods for root finding (bisection and false position).

See ROADMAP.md for the full list of topics planned.

License

MIT

Author

Francisco Corrêa Dias
PhD in Civil Engineering – PUC-Rio
Researcher in Computational Mechanics

Metadata

Release files for numethods 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for numethods 0.1.0
File Size Uploaded Provenance Actions
numethods-0.1.0.tar.gz 6.1 kB Without provenance Details for numethods-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for numethods 0.1.0
File Interpreter ABI Platform Actions
numethods-0.1.0-py3-none-any.whl Python 3 none any Details for numethods-0.1.0-py3-none-any.whl

Total release size: 13.9 kB

Release files / numethods-0.1.0.tar.gz

Download URL numethods-0.1.0.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
12769980d5dbf6ed1a0766d02c24d4634090643b56966b9166c09c96f44b8739
BLAKE2b-256 checksum
How to use checksums
9f9fd73fd214925b834184b5a5c3aed4ec079150faaac618176e2ac02c1b91d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / numethods-0.1.0-py3-none-any.whl

Download URL numethods-0.1.0-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
650833fb9bc25ac569b61a5c1a540b78c7d240dd45e4f404bbb701d75bb51e37
BLAKE2b-256 checksum
How to use checksums
e3a9673c60c7086804902ce2bb3e528911a76cd63088e4f3b8e5cc7a9b5aa812
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for numethods 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page