缺乏SIN ASIN COS ACOS TAN ATAN 等三角函数相关的函数
silver6wings opened this issue · 4 comments
silver6wings commented
当然还有 CEILINE 向上舍入(取整) FLOOR 向下舍入(取整)函数
如果大佬们不嫌弃,我可以贡献我的代码
mpquant commented
欢迎欢迎,代码贴上来吧
silver6wings commented
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 commented
def CEILINE(S): return np.ceil(S) #求S的向上取整
def FLOOR(S): return np.floor(S) #求S的向下取整
silver6wings commented
@mpquant 来啦老哥,我是不需要需要个权限才能提PR?