test_umath_complex.py 文件源码

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

项目:radar 作者: amoose136 项目源码 文件源码
def test_simple_conjugate(self):
        ref = np.conj(np.sqrt(np.complex(1, 1)))

        def f(z):
            return np.sqrt(np.conj(z))
        yield check_complex_value, f, 1, 1, ref.real, ref.imag, False

    #def test_branch_cut(self):
    #    _check_branch_cut(f, -1, 0, 1, -1)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号