Skip to content

Instantly share code, notes, and snippets.

@dannypsnl
Created December 1, 2024 06:31
Show Gist options
  • Save dannypsnl/e929bd37a91b4802f2a9c110a489f075 to your computer and use it in GitHub Desktop.
Save dannypsnl/e929bd37a91b4802f2a9c110a489f075 to your computer and use it in GitHub Desktop.
circle in complex plane
#lang racket
(require plot)
(define (complex->vector z)
(vector (real-part z) (imag-part z)))
(define ps
(for/list ([x (in-range 0 1 1/100)])
(complex->vector (exp (* 0+1i 2 pi x)))))
(plot (points ps))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment