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.

Revisions

  1. dannypsnl created this gist Dec 1, 2024.
    11 changes: 11 additions & 0 deletions circle-in-complex-plane.rkt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    #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))