Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

缺乏SIN ASIN COS ACOS TAN ATAN 等三角函数相关的函数 #45

Open
silver6wings opened this issue Jul 5, 2023 · 4 comments
Open

Comments

@silver6wings
Copy link

当然还有 CEILINE 向上舍入(取整) FLOOR 向下舍入(取整)函数
如果大佬们不嫌弃,我可以贡献我的代码

@mpquant
Copy link
Owner

mpquant commented Jul 11, 2023

欢迎欢迎,代码贴上来吧

@silver6wings
Copy link
Author

silver6wings commented Sep 1, 2023

def SIN(S):      return np.sin(S)            #求S的正弦值(弧度)
def COS(S):      return np.cos(S)            #求S的余弦值(弧度)
def TAN(S):      return np.tan(S)            #求S的正切值(弧度)

def ASIN(S):     return np.arcsin(S)         #求S的反正弦值 [-1, 1]
def ACOS(S):     return np.arccos(S)         #求S的反余弦值 [-1, 1]
def ATAN(S):     return np.arctan(S)         #求S的反正切值 (-∞, +∞)

@silver6wings
Copy link
Author

def CEILINE(S):  return np.ceil(S)         #求S的向上取整
def FLOOR(S):    return np.floor(S)        #求S的向下取整

@silver6wings
Copy link
Author

@mpquant 来啦老哥,我是不需要需要个权限才能提PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants