Last active
January 14, 2025 07:20
-
-
Save dannypsnl/7ef94cbbc905e0b87d2884cf1f404f54 to your computer and use it in GitHub Desktop.
Möbius strip
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 | |
| plot/utils) | |
| (plot3d | |
| (parametric-surface3d | |
| (λ (θ t) | |
| (define R 1) | |
| (define s (/ t 2)) | |
| (list | |
| (* (+ R (* s (cos (* 1/2 θ)))) (cos θ)) | |
| (* (+ R (* s (cos (* 1/2 θ)))) (sin θ)) | |
| (* s (sin (* 1/2 θ))))) | |
| 0 (* 2 pi) #:s-samples 20 | |
| -1 1) | |
| #:z-min -6 #:z-max 6 | |
| #:altitude 22) |
Author
dannypsnl
commented
Jan 14, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment