def test_zero_negative(self):
# atan2(+-0, x) returns +-pi for x < 0.
assert_almost_equal(ncu.arctan2(np.PZERO, -1), np.pi)
assert_almost_equal(ncu.arctan2(np.NZERO, -1), -np.pi)
test_umath.py 文件源码
python
阅读 34
收藏 0
点赞 0
评论 0
评论列表
文章目录