designcoding
About Table of Contents Keywords Monthly Archive
Support designcoding!

Complex Numbers

October 6, 2012 | Algorithms
#complex-number #grasshopper

Studying circle packing led me back to my high school days. First, I’ve tried to write a vb.net component so that I would say Grasshopper to place circles and check lots of things iterating again and again. Then I felt that this was not my real interest in circle packing. After finding an old post by Daniel Piker,  I’m truly enlightened about an old topic of our high school education: The complex numbers! Then I found this link, explaining the short history and meaning of complex numbers for geometry. My first try was the T(z) = z+k/z transformation of a simple square grid. This transformation is said to be studied for the aerodynamics of airfoils.

Complex Numbers animation

In this animation, I’m playing with the real number k and the initial square grid, and applying an equation to the complex number generated from x and y coordinates, then re-construct the square grid back again. Such transformations are called holomorphic transformations. From now on, complex number components are my friends. Things are becoming much easier with them.

Complex Numbers Grasshopper definition
Complex Numbers complex-number, grasshopper
Old Grasshopper definition (GHX)Download

Cite this post

Yazar, T. (2012, October 6). Complex Numbers. designcoding. Retrieved November 13, 2026, from https://www.designcoding.net/complex-numbers/

Related Posts

Mandelbrot Set

October 10, 2012

Today’s fractal is the famous Mandelbrot Set. The Mandelbrot set is a well-known and complex mathematical set often associated with fractals and chaos theory. Named after the mathematician Benoît B. Mandelbrot, it’s a set of complex numbers defined by a simple iterative process. The Mandelbrot set is an intricate and self-similar boundary, which reveals increasingly complex patterns at different magnifications. On the other hand, I heard the term “The fingerprint of God” in some sources resembling its aesthetic and philosophical…

Julia Set

October 10, 2012

Today’s fractal is the Julia Set, the amazing simplicity of chaos. There are lots of applets and articles on the internet about this fractal. You can generate this with the iteration of a basic function many times and placing points on the complex plane. I developed a Grasshopper implementation in 2012. Also, this was my first study on complex numbers. At each iteration, the detail level increases. I utilized a common brute-force approach, distributing a grid of points, converting them…

Polyhedra Library

November 11, 2026

I would like to share my Polyhedra library, which I have used in many projects. Initially, I wanted to build this code based on the geometric constructions of polyhedra. However, because I urgently needed it for projects I was working on at the time, I took a simpler route and hardcoded the vertex coordinates directly inside. Yes, that wasn’t quite in the spirit of designcoding, which is why I called it a “library” rather than a “Polyhedra Generator.” Currently, the…

Voronoi Bubbles

November 11, 2026

Informal use of Voronoi diagrams can be traced back to Descartes in 1644 Peter Gustav Lejeune Dirichlet used two-dimensional and three-dimensional Voronoi diagrams in his study of quadratic forms in 1850. British physician John Snow used a Voronoi-like diagram in 1854 to illustrate how the majority of people who died in the Broad Street cholera outbreak lived closer to the infected Broad Street pump than to any other water pump. Voronoi diagrams are named after Georgy Feodosievych Voronoy who defined…

More Scary Patterns

November 11, 2026

I had previously shared a few pattern animations (here, here, and here) from 2023 that felt a bit unsettling. Here, I am presenting the last four remaining in the archive of Grasshopper 1.0. To me, they feel a bit eerie, and I don’t even know why I made them this way. But I am sharing them anyway, thinking that maybe they could be useful to someone for a completely different, cheerful purpose. It is possible, but difficult, to create these…

  • Chapters

    • Algorithms
    • Discourses
    • Fabrications
    • Studios
  • Explore

    • Table of Contents
    • Monthly Archive

    • All Keywords
    • #pattern
    • #rhino-python
    • #polyhedra
    • #design-education
    • #parametric-surface
    • #terrain
    • #kuka-prc
    • #robot
    • #parakeet
    • #sphere
    • #frege
    • #gauss
    • #voronoi
    • #interlocking
    • #laser-cutting
    • #parametric-curve
    • #fibonacci
    • #vector-field
    • #harmonic
    • #simulation
  • Search

  • Support designcoding!

  • Enjoying designcoding? Support me on Patreon to keep it growing. Thank you!

  • copyright 2026 designcoding.net | about | privacy policy | end user license agreement