Created
July 10, 2018 14:17
-
-
Save alogic0/1532ed8666e384b0bc11f436bb10b9d2 to your computer and use it in GitHub Desktop.
sinus & cosinus
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
program = drawingOf(sinPlot & cosPlot & coordinatePlane) | |
rmax = 2 * 180 | |
k = rmax / 10 | |
ymax = 5 | |
sinPlot = trigLine sin | |
cosPlot = trigLine cos | |
trigLine f = curve([(x, y) | p <- [-10 .. 10], d <- [0 .. 9], let x = p + d/10, let y = ymax * f (x * k)]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment