more trigonomic functions and definitions
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
pi=4*a(1) | |
d=pi/180 | |
define sin(x){return s(x)} | |
define cos(x){return c(x)} | |
define atan(x){return a(x)} | |
define tan(x) { | |
if (c(x)==0) return pi/2 | |
return s(x)/c(x) | |
} | |
define acos(x) { | |
if (x==0) return pi/2 | |
return a(sqrt(1/x^2-1)) | |
} | |
define asin(x) { | |
if (x==1) return pi/2 | |
return a(sqrt(1/(1-x^2)-1)) | |
} |
Author
Hermann-SW
commented
Nov 18, 2022
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment