Symbolics.jl is a Julia CAS for symbolic arithmetic, differentiation, simplification, and code generation integrated with the SciML stack.
Overview
Symbolics.jl is a computer algebra system implemented in Julia, aimed at high-performance parallel symbolic computing that users can extend in the same language. It builds on SymbolicUtils.jl and adds differentiation, symbolic equation solving, and broader algebra workflows.
Capabilities include symbolic arithmetic with multiple dispatch, polynomials and trigonometry, pattern matching and substitution, symbolic linear algebra, discrete math constructs, Boolean expressions, equation solving, sparse Jacobians and Hessians, and conversion from Julia code to symbolic form. Generated functions can target fast numeric or parallel execution.
Because it hooks into Julia’s dispatch system, many Base matrix and factorization operations work on symbolic matrices. Companion packages such as ModelingToolkit.jl, Catalyst.jl, and others build domain models on top of Symbolics for ODEs, chemical reactions, and related simulations.
Install via the Julia package manager with Pkg.add. Documentation covers stable and in-development guides.
Key features
- Symbolic arithmetic and simplification
- Differentiation and equation solving
- Symbolic linear algebra
- Pattern matching and substitution
- Sparse Jacobian and Hessian generation
- Julia code to symbolic conversion
- SciML ecosystem integration
- Parallel and high-performance design
Use cases
- Symbolic modeling before numerical simulation
- Automatic derivatives for scientific code
- Chemical reaction and ODE model building
- Computer algebra inside Julia projects