📜  numpy 复数 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:41.594000             🧑  作者: Mango

代码示例1
z = 1j                        #Imaginary unit
z = 3+4j                    #A complex number, 3+4i
z = complex(3,4)            #A complex number, 3+4i
abs(3+4j)                    #Absolute value (modulus)
z.real                        #Real part
z.imag                        #Imaginary part
angle(z,deg=False)            #Argument (radian)
z.conjugate()                #Complex conjugate