Skip to content

Instantly share code, notes, and snippets.

@SparkySimp
Last active May 25, 2023 06:49
Show Gist options
  • Save SparkySimp/cbd83e7b3a5306cbe0073d53fccabeee to your computer and use it in GitHub Desktop.
Save SparkySimp/cbd83e7b3a5306cbe0073d53fccabeee to your computer and use it in GitHub Desktop.
12 functions
open Math
(* sine and cosine graphs for the artwork *)
fun f1 x r k = sin(xr)k
fun f2 x r k = cos(xr)k
fun f3 x r k = cos((x+3)r)k
fun f4 x r k = sin((x+3)r)k
fun f5 x r k = sin((x+6)r)k
fun f6 x r k = cos((x+6)r)k
fun f7 x r k = sin((x+9)r)k
fun f8 x r k = cos((x+9)r)k
fun f9 x r k = sin((x+12)r)k
fun f10 x r k = cos((x+12)r)k
fun f11 x r k = -k
fun f12 x r k = +k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment