SymPy includes functionality ranging from basic symbolic arithmetic to polynomials, calculus, solvers, discrete mathematics, geometry, statistics, and physics. It mainly works on three types of numbers, namely integer, real, and rational. Integers are whole digit numbers without a decimal point, while real numbers are numbers with decimal points. Rational numbers have two parts: the numerator and the denominator. To define rational numbers, we can use the Ration
class, which requires two numbers. In this chapter, we will discuss the concepts of SymPy with the help of example programs.
We will cover the following topics in this chapter:
A computerized algebra system using SymPy
Core capabilities and advanced functionality
Polynomials, calculus, and solving equations
Discrete mathematics, matrices, geometry, plotting, physics, and statistics
The printing functionality
Let's start a discussion on SymPy and its core capabilities, including basic arithmetic...