Topics /

Math & Algorithms

The most popular blog posts about math & algorithms on Hacker News. 215 posts.

2018
33

Sin and Cos: The Programmer's Pals

In this article I shall discuss several game programming techniques, all revolving around a central theme: the sine and cosine functions. This article will explain sine, cosine, vectors, atan2, and some useful special effects such as how to make homing missiles and how bitmap rotation works. I shall start with the…

39

For mathematicians, = does not mean equality

Every now and then I hear some ridiculous things about the equals symbol. Some large subset of programmers—perhaps related to functional programmers, perhaps not—seem to think that = should only and ever mean “equality in the mathematical sense.” The argument usually goes, Functional programming gives us back that…

47

Statistics, Fast and Slow

Written for and first published in the Financial Times on 13 April 2018. One way to understand China is to look at the statistics. Real income per person has increased nearly tenfold since 1990. Si…

56

Lost in Math

Sabine Hossenfelder’s new book Lost in Math should be starting to appear in bookstores around now. It’s very good and you should get a copy. I hope that the book will receive a lot of a…

58

Proof-Of-Work is a Decentralized Clock

This is an explanation of the key function on Proof-of-Work in the Bitcoin blockchain. It focuses on the one feature of Proof-of-Work that is essential and shows that other features often talked about such as security are secondary side-effects, useful, but not essential. This explanation rests on illustrating a few…