trigonometry.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:joysix 作者: niberger 项目源码 文件源码
def specialFun1(x):     
    '''(x*sin(x) - 2.*(1.-cos(x)))/(x*x*x*x)'''
    if (abs(x) > 1e-2):         
        return (x*math.sin(x) - 2.*(1. - math.cos(x))) / (x*x*x*x)          
    else:           
        return -1./12. + x*x / 180. - x*x*x*x / 6720.
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号