Skip to content

Category Archives: Math

A foray into number theory with Haskell

06-Jul-07
I encountered an interesting problem on reddit a few days ago which can be paraphrased as follows: Find a perfect square s such that 1597 s + 1 is also perfect square. After reading the discussion about implementing a brute-force algorithm to solve the problem and spending a futile half-hour or so trying my hand at find a better way, someone noticed that [...]

Simulating gravity with Javascript and <canvas>

11-Apr-07
One app I've always wanted to do was an n-body gravity simulator. Having recently discovered the <canvas> tag, I decided to whip up a quick naive simulator (won't work in IE, although this looks promising.): #statistics { padding: [...]

The area under the curve

03-Aug-06

I was skimming through one of my favorite textbooks, which goes through elementary and vector calculus entirely in terms of differential forms, and remembered a passage from it that’s been niggling at me ever since I first read it.
First, it gives a fairly standard statement of the fundamental theorem of calculus:

Let F(t) be a function […]

Tupper’s Self-Referential Formula

20-Jul-06

A formula which graphs itself out. I think this beats Euler’s identity for the title of “most beautiful equation”.