Skip to content

Instantly share code, notes, and snippets.

@stevegt
Created January 30, 2022 19:51
Show Gist options
  • Save stevegt/190f6cf67b0c9e51d1708d8d9eb8abe4 to your computer and use it in GitHub Desktop.
Save stevegt/190f6cf67b0c9e51d1708d8d9eb8abe4 to your computer and use it in GitHub Desktop.
thinkscript atan2
script atan2 {
input y = 1.1;
input x = 1.1;
# approx from wikipedia
plot atan2 = 2 * atan(y/(sqrt(sqr(x) + sqr(y)) + x));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment