Applied Math for Creative Coders
  1. Math Models for Creative Coders
  2. Geometry
  3. Complex Numbers
  • Math Models for Creative Coders
    • Maths Basics
      • Vectors
      • Matrix Algebra Whirlwind Tour
      • Things at Right Angles
      • content/courses/MathModelsDesign/Modules/05-Maths/70-MultiDimensionGeometry/index.qmd
    • Tech
      • Tools and Installation
      • Adding Libraries to p5.js
      • Using Constructor Objects in p5.js
      • The Open Sound Protocol
    • Geometry
      • Circles
      • Complex Numbers
      • Fractals
      • Affine Transformation Fractals
      • L-Systems
      • Kolams and Lusona
    • Media
      • Fourier Series
      • Additive Sound Synthesis
      • Making Noise Predictably
      • The Karplus-Strong Guitar Algorithm
    • 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. Geometry
  3. Complex Numbers

Complex Numbers

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

May 2, 2024

Modified

July 19, 2025

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/25-Geometry/20-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/25-Geometry/20-ComplexNumbers/.
Circles
Fractals

License: CC BY-SA 2.0

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

Hosted by Netlify .