Applied Math for Creative Coders
  1. Math Models for Creative Coders
  2. Maths
  3. Complex Numbers
  • Math Models for Creative Coders
    • Tech
      • Tools and Installation
      • Adding Libraries to p5.js
      • Using Constructor Objects in p5.js
      • The Open Sound Protocol
    • Maths
      • Complex Numbers
      • Vectors
      • Matrix Algebra Whirlwind Tour
      • Things at Right Angles
    • Systems
      • Frequency and Time Domains
      • Phasor Diagrams
      • Sampling And Aliasing
      • Fourier Series and Fourier Transform
      • Filters
      • Convolution
    • Geometry
      • Circles
      • Fractals
      • Affine Transformation Fractals
      • L-Systems
      • Kolams and Lusona
    • Media
      • Additive Sound Synthesis
      • FM based Sound Synthesis
      • Making Noise Predictably
      • The Karplus-Strong Guitar Algorithm
      • A Sound Glossary
    • AI
      • Working with Neural Nets
      • The Perceptron
      • The Multilayer Perceptron
      • MLPs and Backpropagation
      • Gradient Descent
    • Projects
      • Projects

On this page

  • Introduction
  • Complex Planes: What am \(i\)?
  • Wait, But Why?
  • References
  1. Math Models for Creative Coders
  2. Maths
  3. Complex Numbers

Complex Numbers

Iterated Functions
Fractals
L-Systems
Mandelbrot
Julia
Algorithmic Patterns
Symmetry
Published

May 2, 2024

Modified

February 20, 2026

Introduction

One of the most basic kinds of numbers we will need are, of course, Complex Numbers. But what are they?

Complex Planes: What am \(i\)?

Dude, what’s the square root of -1?? 🙀 🙀 🙀!! And, what can you do repeatedly to arrive at \([-1, 0]\)?

Wait, But Why?

  • Complex Numbers are very useful in handling “2D data” in a compact fashion
  • Complex Numbers help us to intuitively visualize, and implement, ideas such as rotation, scaling, and shadows, and projections.
  • The duality between rotating vectors and complex numbers is a very important concept.

References

  1. Working with Shadows. https://www.wikiwand.com/en/Map_projection
  2. Working with Fourier Series and Epicyles http://www.jezzamon.com/fourier/index.html and https://alex.miller.im/posts/fourier-series-spinning-circles-visualization/
  3. https://twitter.com/i/status/962449509782495232 https://codegolf.stackexchange.com/questions/36374/redraw-an-image-with-just-one-closed-curve
Back to top

Citation

BibTeX citation:
@online{2024,
  author = {},
  title = {\textless Iconify-Icon Icon=“tabler:math-Xy” Width=“1.2em”
    Height=“1.2em”\textgreater\textless/Iconify-Icon\textgreater{}
    {Complex} {Numbers}},
  date = {2024-05-02},
  url = {https://mathforcoders.netlify.app/content/courses/MathModelsDesign/Modules/05-Maths/10-ComplexNumbers/},
  langid = {en}
}
For attribution, please cite this work as:
“<Iconify-Icon Icon=‘tabler:math-Xy’ Width=‘1.2em’ Height=‘1.2em’></Iconify-Icon> Complex Numbers.” 2024. May 2, 2024. https://mathforcoders.netlify.app/content/courses/MathModelsDesign/Modules/05-Maths/10-ComplexNumbers/.
Maths
Vectors

License: CC BY-SA 2.0

Website made with ❤️ and Quarto, by Arvind V.

Hosted by Netlify .