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 December 3, 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…

Lorenz Attractor with Grasshopper Python

November 26, 2026

In 1963, meteorologist and mathematician Edward Lorenz modelled the thermally driven motion of atmospheric air currents. He used the set of chaotic solutions to a system of nonlinear differential equations, called the Lorenz attractor. Known for its butterfly-wing geometry when plotted in three-dimensional space, it is one of the most famous examples of deterministic chaos. I finally managed to spend 3 hours from my life for this model, which had been sitting on my to-do list for a long time….

Interlocking Torus

November 25, 2026

Interlocking torus models kept popping up on my YouTube feed (such as this and this). Among the Grasshopper experiments sitting in my archive, I found this script I started back in 2012 and only managed to finish now. It took 14 years there, and two hours here, just like Interstellar. When we look at a torus surface, the first sections that come to mind are always familiar ones: slice it horizontally and you get horizontal circles; slice it vertically and…

Hexagonal Star Pattern

November 14, 2026

Sharing the latest scary pattern from my old pattern archive. This time, instead of using Parakeet, I designed it using only standard Grasshopper components. We start with a hexagonal grid. We exploded the cells of this grid and found the midpoint of each edge. By connecting these midpoints, we again created closed polylines. Then, we exploded these closed polylines, turning them into a sequence of data lists. Next, we place a point on each exploded segment (reparameterized with a t-value…

  • Chapters

    • Algorithms
    • Discourses
    • Escapes
    • Fabrications
    • Studios
  • Explore

    • Table of Contents
    • Monthly Archive

    • All Keywords
    • #pattern
    • #rhino-python
    • #polyhedra
    • #vector-field
    • #interlocking
    • #parakeet
    • #sphere
    • #design-education
    • #calculus
    • #attractor
    • #fractal
    • #kuka-prc
    • #robot
    • #polygon
    • #lace
    • #facade
    • #wave
    • #frege
    • #gauss
    • #voronoi
  • 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