Book Image

Mastering Python Scientific Computing

Book Image

Mastering Python Scientific Computing

Overview of this book

Table of Contents (17 chapters)
Mastering Python Scientific Computing
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 6. Applying Python for Symbolic Computing

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...