I got a lot of work done on the bookkeeping, but I couldn’t go to bed without playing with the complex number plots some more. I found an a way to produce some attractive plots. First, I needed this additional function, to make experimentation easier:
(define (complexplot f m n) (plot (lines (map (lambda (n) (complex2vec (f n))) (range m n)))))
The idea I came across was taking the standard unit circle rotation, and multiplying that by samples of the cosine wave:
TA DA!
If I change the “sampling rate” to various fractions of Pi, I get other interesting geometry. Here is Pi/4:
And Pi/7:
It’s like a Spirograph!
LikeLike