Topics /

Math & Algorithms

The most popular blog posts about math & algorithms on Hacker News. 2,851 posts.

Any year
1272

Algebras we love

If you work with anything that can be modeled mathematically, you most likely know that many things you work on can be expressed with algebras. However, if you are not a graduate of a computer science course or similar you might not know how ubiquitous they are and how often you rely on some of them. (And I don’t mean…

1273

Twitter, but for Math, with Toots

Hooray, it’s yet another social network for you to join! I’m skeptical about new social media, but I’ve been seeing enough posts about mathstodon.xyz that I finally caved and got an account. Mathstodon is the math(s) “instance” of mastodon , a new open-source, decentralized microblogging social network. It’s a lot…

1274

Dual_EC_DRBG backdoor: a proof of concept

Dual_EC_DRBG is an pseudo-random number generator promoted by NIST in NIST SP 800-90A and created by NSA. This algorithm is problematic because it has been made mandatory by the FIPS norm (and should be implemented in every FIPS approved software) and some vendors even promoted this algorithm as first source of…

1286

How Quaternions encode rotations: derivation and sample code

In the post on matrices in Codea I mentionned that an affine transformation (things like rotation, scaling, translation) ℝ 3 → ℝ 3 could be specified by giving four vectors. In this post I want to examine that a little more closely for the special case of a rotation. That is to say: how can I encode a rotation in ℝ 3…