Skip to Content
Doing Math with Python
book

Doing Math with Python

by Amit Saha
August 2015
Beginner
264 pages
5h 57m
English
No Starch Press
Content preview from Doing Math with Python

4Algebra and Symbolic Math with SymPy

image

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 xs and ys in a typical algebra problem. We refer to this type of math as symbolic math. I’m sure you remember those dreaded “factorize x3 + 3x2 + 3x + 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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Master Math by Coding in Python

Master Math by Coding in Python

Codestars By Rob Percival, Mike X Cohen
Python Workout

Python Workout

Reuven M. Lerner

Publisher Resources

ISBN: 9781457189999Errata Page