The mathematical problems and solutions in our programs so far have all involved the manipulation of numbers. But there’s another way math is taught, learned, and practiced, and that’s in terms of symbols and the operations between them. Just think of all the *x*s and *y*s in a typical algebra problem. We refer to this type of math as *symbolic math*. I’m sure you remember those dreaded “factorize *x*^{3} + 3*x*^{2} + 3*x* + 1” problems in your math class. Fear no more, for in this chapter, we learn how to write programs that can solve such problems and much more. To do so, we’ll use *SymPy*—a Python library that lets you write ...

Start Free Trial

No credit card required