liveBook · Manning

SymPy

SymPy is an open-source Python library for symbolic mathematics and computer algebra.

How 3 Manning books explain it

Geometry for Programmers

An open-source Python library for symbolic mathematics, including algebraic manipulation, computation, and code generation.

How it is used
Automates algebra and equation solving while developing applied-geometry formulas and implementations.
How deep it goes
Demonstrates symbolic variables, equation systems, generated formulas, code output, and matrix-based least-squares solving, while deferring solver internals.
Examples
Uses train speeds, small linear systems for raytracing, and rowing-time data fitted by a linear polynomial.
What you can do after
Apply it via SymPy to solve small equation systems, derive reusable formulas, and extract polynomial coefficients.

Read how Geometry for Programmers explains SymPy →

Optimization Algorithms: AI techniques for design, planning, and control problems

An open-source Python library for symbolic mathematics, including algebra, calculus, equation solving, and combinatorics.

How it is used
Applies symbolic mathematics to combinatorial calculations and constrained optimization in Python.
How deep it goes
Demonstrates direct calculations and a worked Lagrange-multiplier implementation, while deferring broader usage to documentation.
Examples
Uses binomial coefficients, Stirling numbers, traveling-salesman permutations, and ticket-sales optimization as concrete examples.
What you can do after
Apply SymPy to calculate combinatorial expressions, differentiate symbolic objectives, and solve constrained optimization equations.

Read how Optimization Algorithms: AI techniques for design, planning, and control problems explains SymPy →

Build a Reasoning Model (From Scratch)

An open-source Python library for symbolic mathematics used here to parse and compare expressions for equivalence.

How it is used
Uses symbolic parsing to verify free-form mathematical answers against reference solutions.
How deep it goes
Implements parsing, safeguards, error handling, and difference-based equivalence, stopping short of broader evaluation design.
Examples
Demonstrates equivalent forms such as 28/6 and 14/3, plus 0.5 and 1/2.
What you can do after
Apply it via SymPy to parse normalized expressions and diagnose malformed or mathematically unequal answers.

Read how Build a Reasoning Model (From Scratch) explains SymPy →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.