Created
December 1, 2024 06:31
-
-
Save dannypsnl/e929bd37a91b4802f2a9c110a489f075 to your computer and use it in GitHub Desktop.
circle in complex plane
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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