For the last four years I’ve been working on a book for programmers who want to learn mathematics. It’s finally done, and you can buy it today.

The website for the book is pimbook.org, which has purchase links—paperback and ebook—and a preview of the first pages. You can see more snippets later in the book on the Amazon listing’s “Look Inside” feature.

If you’re a programmer who wants to learn math, this book is written specifically for you! Why? Because programming and math are naturally complementary, and programmers have a leg up in learning math. Many of the underlying modes of thought in mathematics are present in programming, or are otherwise easy to explain by analogies and contrasts to familiar concepts in software. I leverage that in the book so that you can internalize the insights quickly, and appreciate the nuance more deeply than most books can allow. This book is a bridge from the world of programming to the world of math from the mathematician’s perspective. As far as I know, no other book provides this.

Programs make math more interesting and applicable than otherwise. Typical math writers often hold computation and algorithms at a healthy distance. Not us. We embrace computation as a prize and a principle worth fighting for. Each chapter of the book culminates in an exciting program that applies the mathematical insights from the chapter to an interesting application. The applications include cryptographic schemes, machine learning, drawing hyperbolic tessellations, and a Nobel-prize winning algorithm from economics.

The exercises of the book also push you beyond the book itself. There’s so much math out there that you can’t learn it from a single book. Perspectives and elaborations are spread throughout books, papers, blog posts, wikis, lecture notes, math magazines, and your own scratch paper. This book will prepare you to read a variety of sources by introducing you to the standard language of math, and also push you to engage with those resources.

Finally, this book includes a healthy dose of culture. Quotes and passages from the writings of famous mathematicians, contextual explanations of cultural attitudes, and a light dose of history will provide a peek into why mathematics is the way it is today, and why at times it can seem so confounding to an outsider. Through all this, I will show what progress means for math, what attitudes and patterns will help you along the way, and how to stay sane.

Of course, I couldn’t have written the book without the encouragement and support of you, my readers. Thank you for reading, commenting, and supporting me all these years.

Order the book today! I can’t wait to hear what you think 🙂

It’s great to see that the book is finally published! Congratulations on pushing through.

LikeLiked by 2 people

Congratulations. Do you have plans to publish on Kindle or epub? These formats allow me to crank up the font size and read on my iPad without glasses.

LikeLiked by 2 people

I don’t have plans for this yet. I have to explore how Kindle will actually format the book. In my experience nobody gets math typesetting right, and most of the resources I looked into for “epub with math” couldn’t even get basic examples to format correctly. This is also difficult because I don’t own a kindle >_<

So for now, no, sorry 😦

LikeLiked by 1 person

I just bought the book. It looks really exciting—and I’m always happy to support a fellow author!

BTW, I definitely think it’s worth making a Kindle version available if it’s not too much work.

It’s much better experience on a mobile device than a PDF. You don’t need to own a Kindle device to test it. You can use the Kindle app, which is available for free on all major platforms in their various app stores (e.g. Apple App Store, Google Play, Windows Store, etc.). There are various options for supporting math in Kindle (e.g. https://tex.stackexchange.com/questions/16735/latex-options-for-kindle).

LikeLiked by 2 people

I’m concerned about the formulas, tables, and some figures being inlined in the text. But I will take a look.

LikeLiked by 1 person

Bought it – thank you for all the work! It looks excellent.

I do also wish there was an epub format version. Or, barring that, a larger text size PDF. The text is really tiny when you’re middle-aged…

LikeLiked by 3 people

Just the book I was looking for! Question, is there an accompanying solutions manual to the book?

LikeLiked by 1 person

No solutions, sadly, but maybe that would be a good idea for a GitHub repo associated with the book…

LikeLiked by 1 person

I made https://github.com/pim-book/exercises as a starting point. Questions or suggestions for solutions can go in github issues until I figure something out for a long term solution.

LikeLiked by 1 person

Wow! This looks great, I’ve always wanted to see a book like this — I’m excited to read the chapter on groups. And I like the idea of explaining math culture as well.

LikeLiked by 2 people

Reblogged this on josephdung.

LikeLiked by 2 people

Absolutely Fantastic! Just bought it. Looking forward to reading this!

LikeLiked by 2 people

So excited for this. This is what I have been waiting for

LikeLiked by 2 people

Jeremy, I tried to order via PayPal and they require confirmation to “make automatic payments” to Gumroad. I haven’t seen that before. Can I pay you directly? Or should I not be concerned?

LikeLiked by 2 people

I haven’t heard any complaints from the few hundred people who bought the ebook on Gumroad thus far, and I chose Gumroad because a colleague of mine used it successfully to publish a few ebooks. I wouldn’t be concerned, but if you still are, shoot me an email at mathintersectprogramming@gmail.com and we can do a direct exchange.

LikeLiked by 1 person

No worries! I went ahead and ordered via GumRoads. Nicest intro to math I’ve ever seen! Great work!

I wish you much success.

Sincere Thanks,

Dave Huber

LikeLiked by 1 person

Is your book a 100% original work, or does it contain plagiarism?

LikeLiked by 2 people

Sample pages made no sense. There’s no math there. It’s hard to decide whether I want to buy this book.

LikeLiked by 2 people

The Amazon Look Inside preview has more pages, and the sample on my website has the first technical chapter.

LikeLiked by 1 person

Are there any mathematical prerequisites?

LikeLiked by 2 people

See the sibling comment to Nik’s question. (tldr: no, not really)

LikeLiked by 1 person

What are the pre reqs and can we see the TOC? I’ve forgotten whatever little math, or for that matter any CS theory, I knew, so it’ll be super helpful to know those.

LikeLiked by 2 people

The website (pimbook.org) has the first 45 pages, and the Amazon Look Inside preview has more.

Generally, if you have a serious phobia of equations and anything that sounds like math, the book is not for you. If you made it through a calculus course some time in the past (derivative rings a bell, something something rate of change), then I think you’re just the right target audience. The book contains little in the way of CS theory proper (no Turing machines, some informal discussions of complexity just for fun and variety).

That being said, the book does have a ramp. The first three technical chapters are (in my view) gradual and accessible, and then it ramps up. By the end, I think there is not that much difference between what I’m writing and what you’d see in a typical math undergraduate text, in terms of difficulty.

LikeLiked by 1 person

Looks very interesting. Do the code samples work on windows?

LikeLiked by 2 people

The code samples work in a python virtual environment, which should work fine on Windows.

LikeLiked by 1 person

Fantastic achievement. I am excited by this book. I have to vote strongly in the e-reader version camp. PDFs are ostensibly a electronic piece of paper, ebook formats allow for text reflow and readability. A good start would be to change the text from ebook to PDF for gumroad. This caught me off guard. Otherwise I am really looking forward to this book. Thank you 🙂

LikeLiked by 2 people

since a famous AI Independent media introduced your website and book, there is still a lot of developers and researchers are eager to read your book in china. But we can not buy the physical book from amazon and we are not convenient to buy the online version..

LikeLiked by 2 people

I’ve been reading through it, and looking at/working on the exercises. A question: Are all the exercises meant to be more or less readily solvable by the intended target readers, or are some meant more to provoke you to work on it to better understand the problem, and go look for more information on your own?

LikeLiked by 2 people

I’ve been going through the book bit by bit (this is really good). A question about the exercises: are they all meant to be solvable by the intended target readership; or are some meant more to provoke you to work on them to understand the problem better, and to go look for more information on your own?

LikeLiked by 2 people

I meant for the first few exercises to be doable, and the later exercises to be explorations outside the book.

LikeLiked by 1 person

I was very glad to see the book was finally out, and bought it right away – and then was a bit sad to realise I’d bought a .pdf. To be honest, I would have bought it anyway, but I echo some of your other commentors in urging to do a version Kindle or epub version. Being able to control the font size would make a world of difference to me.

LikeLiked by 2 people

Hello Jeremy, I’ve just ordered the printed edition of your book. I took a look at the PDF versions as well, it looks like it’s 20$. Is there any discount available for people that got the printed edition as well (if there’s any kind of discount code printed inside, disregard this comment, I’m still waiting for it to be delivered). Thanks!

LikeLiked by 2 people

Shoot me an email at mathintersectprogramming@gmail.com

LikeLike

I’ve just received my copy this afternoon. Two quick comments for now.

First, this book feels like it was written just for me–and everybody like me. Exactly the right level, exactly the right tone. Intelligent, practical, exact and curious, all with equal weight.

Secondly, I think it is the best-written textbook I have ever come across. Every sentence reads as if, at least once in its life, it has been read out loud.

Thank you!

LikeLiked by 2 people

Wow! My life feels complete

LikeLiked by 1 person

I definitely feel the same way as Tim Baigent.

LikeLiked by 1 person

Hi Jeremy, is there going to be a Kindle or e-book version? I know someone asked this before, but I just find reading books on tablet a much better experience nowadays, better searching, more convenient to carry, etc. Hope you consider it and looking forward to buying a Kindle version 🙂

LikeLiked by 1 person

I want to purchase your book but I have a little question. In the case of a new edition (for typos and other fixes) will you make it available to the ones who bought the pdf?

LikeLiked by 1 person

Yes.

LikeLike

Hi, I spotted your book for sale here:

https://digitalecrater.com/shop/a-programmers-introduction-to-mathematics-edition-ebook-pdf/

But the site doesn’t look legit. Is this site authorized to sell your book?

LikeLike

You are correct. This website is not authorized to sell the ebook. Thanks for letting me know.

LikeLike