Book Image

Applying Math with Python - Second Edition

By : Sam Morley
Book Image

Applying Math with Python - Second Edition

By: Sam Morley

Overview of this book

The updated edition of Applying Math with Python will help you solve complex problems in a wide variety of mathematical fields in simple and efficient ways. Old recipes have been revised for new libraries and several recipes have been added to demonstrate new tools such as JAX. You'll start by refreshing your knowledge of several core mathematical fields and learn about packages covered in Python's scientific stack, including NumPy, SciPy, and Matplotlib. As you progress, you'll gradually get to grips with more advanced topics of calculus, probability, and networks (graph theory). Once you’ve developed a solid base in these topics, you’ll have the confidence to set out on math adventures with Python as you explore Python's applications in data science and statistics, forecasting, geometry, and optimization. The final chapters will take you through a collection of miscellaneous problems, including working with specific data formats and accelerating code. By the end of this book, you'll have an arsenal of practical coding solutions that can be used and modified to solve a wide range of practical problems in computational mathematics and data science.
Table of Contents (13 chapters)

What this book covers

Chapter 1, An Introduction to Basic Packages, Functions, and Concepts, introduces some of the basic tools and concepts that will be needed in the rest of the book, including the main Python packages for mathematical programming, NumPy and SciPy.

Chapter 2, Mathematical Plotting with Matplotlib, covers the basics of plotting with Matplotlib, which is useful when solving almost all mathematical problems.

Chapter 3, Calculus and Differential Equations, introduces topics from calculus such as differentiation and integration, and some more advanced topics such as ordinary and partial differential equations.

Chapter 4, Working with Randomness and Probability, introduces the fundamentals of randomness and probability, and how to use Python to explore these ideas.

Chapter 5, Working with Trees and Networks, covers working with trees and networks (graphs) in Python using the NetworkX package.

Chapter 6, Working with Data and Statistics, gives various techniques for handling, manipulating, and analyzing data using Python.

Chapter 7, Using Regression and Forecasting, describes various techniques for modeling data and predicting future values using the Statsmodels package and scikit-learn.

Chapter 8, Geometric Problems, demonstrates various techniques for working with geometric objects in Python using the Shapely package.

Chapter 9, Finding Optimal solutions, introduces optimization and game theory, which uses mathematical methods to find the best solutions to problems.

Chapter 10, Increasing your Productivity, covers an assortment of situations you might encounter while solving mathematical problems using Python.