findiff
A Python package for finite difference derivatives in any number of dimensions.
Decision gist · record as of 2026-08-14
Yes. findiff is actively maintained, has no known vulnerabilities, installs with low friction, and solves a clear problem in numerical computing. It is well-suited for anyone doing finite difference calculations or PDE solving in Python. The recent additions of compact schemes and periodic boundary conditions make it competitive for modern scientific computing tasks.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction: pure Python wheel with three well-established runtime dependencies (numpy, scipy, sympy).
- Actively maintained with recent commits and no known vulnerabilities.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use, modify, and distribute findiff with minimal restrictions, including in commercial projects.
last release 2026-02-19 (176 days) · last repo commit 2026-07-20 · 508 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 84,039 downloads/mo, #14,033 on PyPI
Alternatives
Verify before relying
pip install findiff
import numpy as np
from findiff import Diff
x = np.linspace(0, 1, 100)
f = np.sin(x)
d_dx = Diff(0, x[1] - x[0])
df_dx = d_dx(f)- Whether compact finite difference schemes (new in 0.13) offer measurable performance gains for typical PDE workloads compared to standard schemes.
- Scalability characteristics when applied to very large multidimensional arrays or high-order derivatives.
What it is and what it does
findiff is a numerical differentiation library that applies finite difference stencils to numpy arrays to compute derivatives and solve PDEs. It lets you define derivative operators symbolically (e.g., d²/dx²) and apply them to data, with control over accuracy order, boundary handling, and grid periodicity. The package supports standard finite differences and newer compact (implicit) schemes that couple derivative values at neighboring points for spectral-like accuracy from small stencils.
You specify a grid spacing and derivative order, then apply the operator to your data. It handles multidimensional arrays, arbitrary linear combinations of derivatives with variable coefficients, and can return matrix representations of differential operators. Recent versions added periodic boundary conditions and compact schemes with automatic stencil selection, making it suitable for both simple derivative calculations and complex PDE solving workflows.
Use it for
- Compute spatial derivatives on gridded data for physics simulations or numerical analysis.
- Solve time-dependent PDEs with Dirichlet or Neumann boundary conditions.
- Generate finite difference coefficient tables for custom numerical schemes.
- Build matrix representations of differential operators for linear algebra workflows.
- Apply compact finite differences to achieve high accuracy with narrow stencils on periodic or non-periodic grids.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
findiff is actively maintained, has no known vulnerabilities, installs with low friction, and solves a clear problem in numerical computing. It is well-suited for anyone doing finite difference calculations or PDE solving in Python. The recent additions of compact schemes and periodic boundary conditions make it competitive for modern scientific computing tasks.
Install
findiff on PyPI
Before you install
Low friction: pure Python wheel with three well-established runtime dependencies (numpy, scipy, sympy). Actively maintained with recent commits and no known vulnerabilities.
License in practice
MIT license is permissive; you can use, modify, and distribute findiff with minimal restrictions, including in commercial projects.
Quickstart
pip install findiff
import numpy as np
from findiff import Diff
x = np.linspace(0, 1, 100)
f = np.sin(x)
d_dx = Diff(0, x[1] - x[0])
df_dx = d_dx(f)
Verify before relying
- Whether compact finite difference schemes (new in 0.13) offer measurable performance gains for typical PDE workloads compared to standard schemes.
- Scalability characteristics when applied to very large multidimensional arrays or high-order derivatives.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesnumpyscipysympy |
| Maintenance | Actively maintained 176 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 84,039 / month, #14,033 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Scientific/Engineering :: Mathematics |
Evidence: findiff-0.13.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “finite difference derivatives”
- findiffComputes finite difference numerical derivatives and solves partial…
- numdifftoolsComputes numerical derivatives, gradients, Jacobians, Hessians, and…
- greeneryParses and manipulates regular expressions by converting them to…
Give your agent the search over MCP, or paste the wish link into any chat.
More Mathematics packages
NetworkX provides data structures and algorithms for creating, analyzing, and manipulating graphs and networks, supporting everything from simple undirected graphs to complex directed and weighted networks.
kiwisolver is a Python binding to a fast C++ implementation of the Cassowary constraint solver, enabling you to solve systems of linear constraints and inequalities.
Install it if you need to solve constraint systems; skip it if you only need simple linear algebra.
SymPy is a Python library for symbolic mathematics, performing algebraic manipulation, calculus, equation solving, and mathematical expression simplification without numerical approximation.
ContourPy calculates contours of 2D quadrilateral grids using C++11 algorithms wrapped in Python, offering serial and multithreaded implementations without requiring Matplotlib as a dependency.
PyTorch provides GPU-accelerated tensor computation and automatic differentiation for building and training deep neural networks in Python.
onnxruntime loads and executes Open Neural Network Exchange (ONNX) models with a focus on inference performance across CPUs and accelerators.
Install it if you have ONNX models to run in production or development.
See also numdifftools · sparsediffpy · diffrax · autograd-gamma · autograd · torchcde · nvidia-cusolver-cu11 · torchsde · casadi · nvidia-cusolver