Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import cmath
- numero1 = complex(2, 4)
- numero2 = 3 - 5j
- print(numero1)
- print(numero2)
- print(numero1.real)
- print(numero2.imag)
- print(numero1.conjugate())
- print(numero1 + numero2)
- print(numero1 * numero2)
- print(numero1 / numero2)
- print(abs(numero1))
- print(cmath.sin(numero1))
- print(cmath.cos(numero1))
- print(cmath.exp(numero1))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement