Why does 0.1 and 0.2 = 0.30000000000000004?
Why does 0.1 + 0.2 = 0.30000000000000004?
Topics /
The most popular blog posts about math & algorithms on Hacker News. 2,851 posts.
Why does 0.1 + 0.2 = 0.30000000000000004?
How the value of π depends on the definition of distance.
Learn cryptography in Go by building ciphers, hashes, password security, and encryption tools. Understand security beneath the library call.
Fastest general and simple binary search C++ implementation
I love when my current problem can be solved with a state machine. They’re fun to design and implement, and I have high confidence about correctness. They tend to:
Nothing in the news media yet, but many folks on Twitter and colleague Nassim Taleb are reporting that the father of fractal geometry is dead at age 85. We’re n
Movement for a single object seems easy. Pathfinding is complex. Why bother with pathfinding? Consider the following situation:
The notorious Jacobian conjecture can be formulated concretely over the complex numbers as follows. Conjecture 1 (Jacobian Conjecture) Let $latex {F:{\bf C}^n \rightarrow {\bf C}^n}&fg=000000$ …
Compare top same day payout casinos in Canada with verified withdrawal speeds, bonus offers, and player ratings for 2026.
You’re lying on a beautiful beach when you feel a tap on your shoulder, and suddenly you’re not at the beach at all — you’re in a classroom. The student who woke you looks apologe…
Mathematics, applications of mathematics to life in general, and my life as a mathematician.
Free, evolving crypto tutorial since 1999!
Reinforcement Learning
Richard Rosenfeld in the most recent Criminologist published a piece about forecasting national level crime rates. People complain about the FBI releasing crime stats a year late, academics are wor…
In numerical linear algebra we are concerned with solving linear algebra problems accurately and efficiently and understanding the sensitivity of the problems to perturbations. We describe seven si…
This is the color of something infinitely hot. Of course you’d instantly be fried by gamma rays of arbitrarily high frequency, but this would be its spectrum in the visible range. This…
Introduction / Warning Link to heading Any traditional introductory statistics course will teach students the definitions of modes, medians and means. But, because introductory courses can’t assume that students have much mathematical maturity, the close relationship between these three summary statistics can’t be…
When life gives you switches...
And some novel ideas for bicycle wheel design.
By Jonas Kristoffer Lindeløv ( blog , profile ). Last updated: 28 June, 2019 (See changelog ). Check out the Python version and the Twitter summary .
learning about B-Trees...in factorio
The man who gave us the solution to the Entscheidungsproblem
Developers take garbage collection for granted, but it's hard to see how it works. Watch 5 different GC algorithm visualizations.
We recently introduced our report on probabilistic programming. The accompanying prototype allows you to explore the past and future of the New York residential real estate market. This post gives a feel for the content in our report by introducing the algorithms and technology that make probabilistic programming…