SymPy is a pure Python library for symbolic mathematics. It aims to become a full-featured computer algebra system (CAS) while keeping the code as simple as possible in order to be comprehensible and easily extensible. SymPy is written entirely in Python and does not require any external libraries.
This tutorial is intended to cover the basics as well as touch on more advanced topics. We will start with the basics of constructing and manipulating mathematical expressions in SymPy. We will also discuss the most common issues and differences from other computer algebra systems, and how to deal with them. In the remaining part of this tutorial we will show how to solve mathematical problems with SymPy.
This knowledge should be enough for attendees to start using SymPy for solving mathematical problems and hacking SymPy's internals (though hacking core modules may require additional expertise).
We expect attendees of this tutorial to have basic knowledge of Python and mathematics.
Introduction of the topic, speakers, and software.
Introduces Symbols in SymPy which are the basic building blocks of SymPy expression. This notebook also introduces functions in SymPy and how to take derivatives of the expressions.
Solving equations using solveset
. Using subs
to substitute symbols with symbols/functions. Introduction to plotting using SymPy.
Practice problems on subs, diff and solveset.
Common pitfalls that should be taken care for. Knowing these helps to code more efficiently and correctly.
Integrating expressions using integrate
method.
Representing Matrices in SymPy. Linear Algebra routines available in SymPy.
Numerical Evaluation in SymPy. Goes through the slow and the fast way of doing this.
Calculating Series Expansion (taylor series, formal power series, fourier series)