Math for Programming

Look inside
Paperback
$49.99 US
On sale Apr 22, 2025 | 504 Pages | 9781718503588

See Additional Formats
A one-stop-shop for all the math you should have learned for your programming career.

Every great programming challenge has mathematical principles at its heart. Whether you’re optimizing search algorithms, building physics engines for games, or training neural networks, success depends on your grasp of core mathematical concepts. 

In Math for Programming, you’ll master the essential mathematics that will take you from basic coding to serious software development. You’ll discover how vectors and matrices give you the power to handle complex data, how calculus drives optimization and machine learning, and how graph theory leads to advanced search algorithms.

Through clear explanations and practical examples, you’ll learn to:
  • Harness linear algebra to manipulate data with unprecedented efficiency
  • Apply calculus concepts to optimize algorithms and drive simulations
  • Use probability and statistics to model uncertainty and analyze data
  • Master the discrete mathematics that powers modern data structures
  • Solve dynamic problems through differential equations

Whether you’re seeking to fill gaps in your mathematical foundation or looking to refresh your understanding of core concepts, Math for Programming will turn complex math into a practical tool you’ll use every day.
Foreword
Acknowledgments
Introduction
Chapter 1. Computers and Numbers
Chapter 2. Sets and Abstract Algebra
Chapter 3. Boolean Algebra
Chapter 4. Functions and Relations
Chapter 5. Induction
Chapter 6. Recurrence and Recursion
Chapter 7. Number Theory
Chapter 8. Counting and Combinatorics
Chapter 9. Graphs
Chapter 10. Trees
Chapter 11. Probability
Chapter 12. Statistics
Chapter 13. Linear Algebra
Chapter 14. Differential Calculus
Chapter 15. Integral Calculus
Chapter 16. Differential Equations
Index
Ronald T. Kneusel has been working with machine learning in industry since 2003 and has a PhD in machine learning from the University of Colorado, Boulder. Kneusel is the author of Practical Deep Learning, Math for Deep Learning, The Art of Randomness, How AI Works, and Strange Code (all from No Starch Press), as well as Numbers and Computers and Random Numbers and Computers (Springer).

About

A one-stop-shop for all the math you should have learned for your programming career.

Every great programming challenge has mathematical principles at its heart. Whether you’re optimizing search algorithms, building physics engines for games, or training neural networks, success depends on your grasp of core mathematical concepts. 

In Math for Programming, you’ll master the essential mathematics that will take you from basic coding to serious software development. You’ll discover how vectors and matrices give you the power to handle complex data, how calculus drives optimization and machine learning, and how graph theory leads to advanced search algorithms.

Through clear explanations and practical examples, you’ll learn to:
  • Harness linear algebra to manipulate data with unprecedented efficiency
  • Apply calculus concepts to optimize algorithms and drive simulations
  • Use probability and statistics to model uncertainty and analyze data
  • Master the discrete mathematics that powers modern data structures
  • Solve dynamic problems through differential equations

Whether you’re seeking to fill gaps in your mathematical foundation or looking to refresh your understanding of core concepts, Math for Programming will turn complex math into a practical tool you’ll use every day.

Table of Contents

Foreword
Acknowledgments
Introduction
Chapter 1. Computers and Numbers
Chapter 2. Sets and Abstract Algebra
Chapter 3. Boolean Algebra
Chapter 4. Functions and Relations
Chapter 5. Induction
Chapter 6. Recurrence and Recursion
Chapter 7. Number Theory
Chapter 8. Counting and Combinatorics
Chapter 9. Graphs
Chapter 10. Trees
Chapter 11. Probability
Chapter 12. Statistics
Chapter 13. Linear Algebra
Chapter 14. Differential Calculus
Chapter 15. Integral Calculus
Chapter 16. Differential Equations
Index

Author

Ronald T. Kneusel has been working with machine learning in industry since 2003 and has a PhD in machine learning from the University of Colorado, Boulder. Kneusel is the author of Practical Deep Learning, Math for Deep Learning, The Art of Randomness, How AI Works, and Strange Code (all from No Starch Press), as well as Numbers and Computers and Random Numbers and Computers (Springer).

Books for National Depression Education and Awareness Month

For National Depression Education and Awareness Month in October, we are sharing a collection of titles that educates and informs on depression, including personal stories from those who have experienced depression and topics that range from causes and symptoms of depression to how to develop coping mechanisms to battle depression.

Read more

Horror Titles for the Halloween Season

In celebration of the Halloween season, we are sharing horror books that are aligned with the themes of the holiday: the sometimes unknown and scary creatures and witches. From classic ghost stories and popular novels that are celebrated today, in literature courses and beyond, to contemporary stories about the monsters that hide in the dark, our list

Read more

Books for LGBTQIA+ History Month

For LGBTQIA+ History Month in October, we’re celebrating the shared history of individuals within the community and the importance of the activists who have fought for their rights and the rights of others. We acknowledge the varying and diverse experiences within the LGBTQIA+ community that have shaped history and have led the way for those

Read more