Examples#

Runnable examples for every subpackage: an auto-generated gallery built directly from the scripts under examples/<name>/. Where a narrative, worked-through tutorial also exists, the gallery links out to it.

Foundations

mathematicskit.abstract_algebra

Cyclic/permutation groups, subgroups and cosets, finite fields, and polynomial ring arithmetic.

Examples
mathematicskit.combinatorics

Counting and generation, Pascal’s triangle, integer partitions, inclusion-exclusion, and Stirling/Catalan/Bell numbers.

Examples
mathematicskit.number_theory

Modular arithmetic, primality testing, the Chinese Remainder Theorem, continued fractions, and Diophantine equations.

Examples

Analysis

mathematicskit.calculus

Numerical differentiation/integration, forward- and reverse-mode automatic differentiation, and Taylor series.

Examples
mathematicskit.complex_analysis

Contour integrals, Cauchy’s theorem and formula, residues and the argument principle, conformal maps, and domain coloring.

Examples
mathematicskit.numerical_analysis

Root finding with convergence-order verification, polynomial interpolation, and least-squares regression.

Examples
mathematicskit.pde

Heat, wave, advection and Poisson/Laplace problems: the method of lines, Crank-Nicolson, CFL stability, and spectral methods.

Examples
mathematicskit.special_functions

Gamma/beta functions, Bessel functions, orthogonal polynomials, the FFT, and signal transforms: convolution, filters, Z/Laplace transforms, and wavelets.

Examples

Linear Algebra & Optimization

mathematicskit.linalg

LU/QR/Cholesky decompositions, eigenvalue algorithms, SVD, iterative Krylov solvers, and least-squares stability.

Examples
mathematicskit.optimization

Gradient descent, nonlinear conjugate gradient, Newton/BFGS, constrained optimization, and linear programming.

Examples

Geometry & Graphs

mathematicskit.geometry

Convex hull, Delaunay triangulation/Voronoi diagrams, segment intersection/point-in-polygon, and the Frenet-Serret frame.

Examples
mathematicskit.graph_theory

Shortest paths, minimum spanning trees, maximum flow/minimum cut, graph coloring, and spectral graph theory.

Examples
mathematicskit.topology

Simplicial homology and torsion, the fundamental group, classification of surfaces, fixed-point theorems, and persistent homology.

Examples

Dynamics & Chaos

mathematicskit.fractals_chaos

Lyapunov exponents, fractal dimension, Mandelbrot/Julia sets, iterated function systems, and cellular automata.

Examples
mathematicskit.ode_dynamics

Fixed-point stability, phase portraits, bifurcation normal forms, limit cycles, and Poincare sections.

Examples

Probability & Statistics

mathematicskit.information_theory

Entropy and mutual information, Huffman and arithmetic coding, channel capacity, and Hamming, convolutional and LDPC codes.

Examples
mathematicskit.probability

Discrete/continuous distributions, Monte Carlo integration, limit theorems, and Markov chains.

Examples
mathematicskit.statistics

Descriptive statistics, hypothesis tests, confidence intervals, OLS regression, and bootstrap resampling.

Examples