Complex Numbers for AI

The square root of -1 is not imaginary. It is the key to rotations, frequencies, and half of signal processing.

Learn 1 hr Python

Prerequisites: Phase 1, Lessons 01-04 (linear algebra, calculus)

#Learning Objectives

  • Perform complex arithmetic (add, multiply, divide, conjugate) in both rectangular and polar form
  • Apply Euler's formula to convert between complex exponentials and trigonometric functions
  • Implement the Discrete Fourier Transform using complex roots of unity
  • Explain how complex rotations underlie RoPE and sinusoidal positional encodings in transformers
Full Access lesson

Keep going. The rest of this lesson is one step away.

Unlock all 503 lessons, video, code, quizzes and every future update. Pay in your own currency with Paystack.

The text and code of this lesson are based on AI Engineering from Scratch by Rohit Ghumare, MIT licensed.