Skip to main content

Euler's Formula: From Complex Numbers to Rotating Waves

· 6 min read

A cosine tracks the horizontal position of a point going around a circle. A sine tracks its vertical position. Euler's formula puts both coordinates in one complex number. That's why a single exponential can describe a steady rotation and why a minus sign in its exponent reverses the direction.

Fourier Series: Why a Repeating Wave Has Harmonics

· 12 min read

A waveform repeats once a second. Does that mean it contains only a 1 Hz tone? No: a 3 Hz tone makes three full cycles in that second, so it fits the same repeating pattern. A Fourier series separates two questions: which frequencies fit the period, and how much of each one does the waveform actually contain?

How a Voice Recording Becomes a Sequence of Numbers

· 9 min read

A recorder set to 16 kHz, 16-bit makes two promises: how often it measures the microphone voltage, and how finely it rounds each measurement. Why does the first setting limit the frequencies we can recover, while the second changes the error in the values we store? The two answers come from different calculations.

Rete: Incremental Rule Matching, from First Principles to Go

· 18 min read

A rule engine repeatedly asks which combinations of current facts satisfy its rules. Rete keeps those matches up to date by remembering filtered facts and partial matches, then propagating changes through a shared network. We will derive that network and implement a small matcher in Go.

Installing NVIDIA Driver CUDA Toolkit on Ubuntu for Newer GPUs (e.g. 5060 Ti)

· 6 min read

Hello everyone! If you've recently upgraded to a newer NVIDIA GPU, like the powerful 5060 Ti, and are running Ubuntu 24.04 or later, you might have run into issues installing the latest drivers and CUDA Toolkit directly from the standard Ubuntu repositories. This is often because newer hardware requires more up-to-date drivers than what's typically available in the default package sources.