Observed since 20 Oct, 18:45 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Fast, transparent first- and second-order automatic differentiation

Fast, transparent first- and second-order automatic differentiation for Python
The ad package allows you to easily and transparently perform first- and
second-order automatic differentiation. Advanced math involving trigonometric,
logarithmic, hyperbolic, and related functions can be evaluated directly using
the ad.admath submodule.
All base numeric types are supported (int, float, complex, etc.). The
package is designed so underlying numeric types interact as they normally do
during calculations. In practice, ad behaves like a lightweight wrapper that
tracks derivatives while preserving standard numeric behavior.
From the Wikipedia entry on Automatic differentiation:
"AD exploits the fact that every computer program, no matter how complicated, executes a sequence of elementary arithmetic operations (addition, subtraction, multiplication, division, etc.) and elementary functions (exp, log, sin, cos, etc.). By applying the chain rule repeatedly to these operations, derivatives of arbitrary order can be computed automatically, and accurate to working precision."
See the package documentation for details and examples.
math and
cmath, plus convenience
trigonometric, hyperbolic, and logarithmic helpers (csc, acoth, ln,
etc.). Comparison operators follow the same rules as the wrapped numeric
values.ad.admath counterparts.scipy.optimize via gh(your_func_here).ad.linalg similar to NumPy's linalg, without
LAPACK dependency.Decompositions
chol: Cholesky decompositionlu: LU decompositionqr: QR decompositionSolving equations and matrix inversion
solve: General solver for linear systemslstsq: Least-squares solver for linear systemsinv: Multiplicative inverse of a matrixuv pip install ad
Requires Python 3.10+. See the full installation guide.
BSD-3-Clause.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.5.1 | 19 Aug 2026 | 1 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 18:45 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:5738b9ba74f44d148bd2990cd33628a7938bf0e885589c6af4354072c534e115