Created
January 30, 2022 19:51
-
-
Save stevegt/190f6cf67b0c9e51d1708d8d9eb8abe4 to your computer and use it in GitHub Desktop.
thinkscript atan2
This file contains 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
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