def test_any_ninf(self):
# atan2(+-y, -infinity) returns +-pi for finite y > 0.
assert_almost_equal(ncu.arctan2(1, np.NINF), np.pi)
assert_almost_equal(ncu.arctan2(-1, np.NINF), -np.pi)
test_umath.py 文件源码
python
阅读 50
收藏 0
点赞 0
评论 0
评论列表
文章目录